jaffathecake,
@jaffathecake@mastodon.social avatar

I get it. I get the whole point of it. But CSS logical properties are so confusing. Even after reading the first two paragraphs of https://developer.mozilla.org/en-US/docs/Web/CSS/block-size I'm left thinking ENOUGH WITH THE FUCKIN RIDDLES.

Ok, so if display: block makes the thing full width, block-size will change the width.

lol no guess again!

mia, (edited )
@mia@front-end.social avatar

@jaffathecake This is a reference to the direction of flow. Which is to say:

  • the axis where elements expand based on content size
  • the axis where the next element will be added

The fact that blocks go full-width by default is a reminder that it's not the block axis. Block elements can't flow on an axis where they are always full-width.

simevidas, (edited )
@simevidas@mastodon.social avatar

@jaffathecake I would prefer if I could continue to write ”width”, etc. in my code, but then have a tool that automatically converts my CSS to the logical version, if that’s possible.

sjorsrijsdam,
@sjorsrijsdam@mastodon.social avatar

@jaffathecake Now considered the concept of align in flexbox and in text-align.

jaffathecake,
@jaffathecake@mastodon.social avatar

@sjorsrijsdam haha I've raged about this before

dutchcelt,
@dutchcelt@mastodon.social avatar

@jaffathecake When you put it like that, it is a bit confusing.
I had to step back and think (of block) in terms of flow and its sizing merely as a consequence of that. Then it clicked, sorta.
Mental models are hard to change.

chris22smith,
@chris22smith@mastodon.social avatar

@jaffathecake I forced myself to use logical properties and it does stick pretty quickly. It's then hard to go back and not fanatically update everything you see.

DavidDarnes,
@DavidDarnes@mastodon.design avatar

@jaffathecake I think you have to be working in the depths of it for a while before it really sticks

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • Durango
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • osvaldo12
  • khanakhh
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • kavyap
  • InstantRegret
  • JUstTest
  • GTA5RPClips
  • cubers
  • ethstaker
  • normalnudes
  • tacticalgear
  • cisconetworking
  • tester
  • Leos
  • modclub
  • megavids
  • provamag3
  • anitta
  • lostlight
  • All magazines