Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I've always hated the shorthand order of css. left should be first imo. (yes, I know, Western bias)
one could argue that it makes sense for top to be first but you gotta admit it feels dumb that left is the LAST property. Bottom should obviously be the last one!
But what's even more dumb is to try and change that now de facto standard like xaml does -
arekxv10528y@jiraTicket I also find sense with current css shorthand when you think about it. It goes clockwise: Top right bottom left :)
-
arekxv10528y@LicensedCrime That is due how CSS does completion.
When you say:
padding: 10px;
This actually means you set only the top padding. CSS does pattern completion by repeating the 10px you've entered other 3 so you have 10px padding for all.
When you say:
padding: 10px 5px;
You've set top and right. And CSS does pattern completion for bottom and left, by repeating 10px 5px you've entered.
Same goes for margins. :)
Related Rants
Why??? :(
undefined
syntax
xaml
css