stormwarning / stylelint-config-recess-order

🗂️ Recess-based property sort order for Stylelint.
ISC License
354 stars 22 forks source link

CSS Logical Properties shouldn't be used as fallback #299

Closed mdizo closed 2 months ago

mdizo commented 2 years ago

CSS logical properties are currently ordered before their conventional counterparts when it should be the other way around because of CSS' cascading nature.

Logical properties should be placed later so that if the browser doesn't support the property then it will fallback to the normal properties.

kutsan commented 2 years ago

stylelint-config-clean-order includes your changes and you can use it instead of recess-order. I made my config since this one looks unmaintained.

stormwarning commented 1 year ago

Hmm, I was thinking about it more like the logical properties are less "specific", similar to how shorthand properties like margin come before more specific ones like margin-left — something could be inline-start in general but need to be right no matter what the writing mode is.

Not shutting down the suggestion, but I'll leave this open for other feedback since it'd be a breaking change.