3 ms·
It's kind of crazy how many properties there are... I've been working with CSS for a long time and have never heard of “margin-inline” either.
by brettermeier 1y ago
It's kind of crazy how many properties there are... I've been working with CSS for a long time and have never heard of “margin-inline” either.
- lelandfe 1y agoIMHO you should completely ignore the -inline/-block "logical" properties until you one day are making a site in traditional Mongolian or perhaps fanciful Japanese. Preparing for that day is unwise. It does make it kind of useful to write one line centers instead of two, but at the expense of people kind of needing to learn about damn logical properties when they read your code/blog.
- LorenzoVella 1y agoFair, but skipping logical properties is just asking for trouble down the line. They make layouts way more predictable across languages and writing modes, and once you get them, simple stuff like one-line centers barely costs extra. It’s future-proofing, not overengineering.
- deleted 1y ago[deleted]
- deleted 1y ago[deleted]
- lelandfe 1y agoI will feel deep burning shame in the decades hence when traditional Mongolian becomes our lingua franca and my CSS must be slightly changed
- WorldMaker 1y agoGiven how many people prefer to use the 4-property shortcuts even when that doesn't make sense, teaching the 2-property shortcuts seems like a good thing, even if you don't expect to support localizations where they matter the most. Also, in my experience they interact with Flexbox and CSS Grid in useful ways that sometimes the "logical" properties are much easier to reason with than the 4-property versions or the individual property versions.