Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mdizo opened this issue Apr 12, 2022 · 2 comments
Open

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

mdizo opened this issue Apr 12, 2022 · 2 comments

Comments

@mdizo
Copy link

mdizo commented Apr 12, 2022

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
Copy link

kutsan commented Jun 12, 2022

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
Copy link
Owner

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 stormwarning pinned this issue Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants