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-forms-1] The slider-orientation property might be missing a few things #11891

Open
mfreed7 opened this issue Mar 10, 2025 · 0 comments
Open

Comments

@mfreed7
Copy link
Contributor

mfreed7 commented Mar 10, 2025

I like that there's a slider-orientation proposal. (See #9832.) Some comments:

The spec draft says that auto is "defined by the writing mode and direction" but that needs more detail, and should hopefully be interoperable. It sounds straightforward, but interesting questions arise. E.g. should a slider that is slider-orientation:auto have "more" oriented toward the top or bottom, when writing-mode: vertical-lr? We spent some time looking into this a few years ago because it's not clear that "more" should be "down" just because text flows down. E.g. many folks expect "up" to always be "more". It's a quite-bad interop problem when sliders go different directions on different browsers.

Also, this is kind of implied by the text, but should be explicit: the slider-orientation property should "win" over writing-mode, direction, and even the orient=vertical attribute (though non-standard).

It might also be helpful to define what "more" means for things like <input type=checkbox switch>. It feels like "on" is "more", but that should be explicit.

Should there also be values of this property that are logical, e.g. slider-orientation: start-to-end or slider-orientation: block-start-to-block-end, etc.?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant