Height and width have logical property equivalents as well. I think of "block" like head/feet & "inline" like left/right arms.
img { max-width: 100%; }
becomes
img { max-inline-size: 100%; }
docs
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties …
browser support:
https://caniuse.com/#feat=mdn-css_properties_block-size …pic.twitter.com/X0A5TwPeq5
-
-
yep! written by none other than
@jon_nealhttps://github.com/csstools/postcss-logical … -
looks like it does the opposite: devs use logical props, and the postcss converts it into physical ones would be great, if we could still use our beloved width/height and etc, and then *woosh* it's inline/block size in production
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.