stylelint-config-recess-order icon indicating copy to clipboard operation
stylelint-config-recess-order copied to clipboard

CSS Logical Properties shouldn't be used as fallback

Open mdizo opened this issue 3 years ago • 2 comments

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.

mdizo avatar Apr 12 '22 19:04 mdizo

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.

kutsan avatar Jun 12 '22 19:06 kutsan

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.

stormwarning avatar Dec 20 '22 19:12 stormwarning