[csswg-drafts] New property to control the direction of slider controls (#9832)

mfreed7 has just created a new issue for https://github.com/w3c/csswg-drafts:

== New property to control the direction of slider controls ==
I'm extracting this question from the various discussions in several forums:
- https://github.com/w3c/csswg-drafts/issues/4410#issuecomment-1898417658
- https://github.com/whatwg/html/issues/4177#issuecomment-1882909538
- https://github.com/whatwg/html/issues/8413#issuecomment-1898434004
- https://github.com/openui/open-ui/issues/959

For slider controls (`<input type=range>`, `<progress>`, `<meter>`, potentially `<input type=checkbox switch>`, etc.) there is a desire to be able to control:
1. The orientation of the slider: horizontal vs. vertical.
2. The polarity/direction of the slider: which way is toward "more".
3. The writing mode and direction of any text associated with the control, such as tooltips.

In current browsers, <span>#</span>1 is controlled by the CSS `writing-mode` property, and <span>#</span>2 is controlled by the CSS `direction` property. This does allow full control of orientation and direction for sliders, and at least [recently](https://github.com/whatwg/html/issues/8413#issuecomment-1876018538) (thanks @dizhangg), this behavior is implemented interoperably, despite a lack of standards for this behavior. However, because of <span>#</span>3 (see https://github.com/whatwg/html/issues/4177#issuecomment-1882909538 in particular), it might make sense to have a specific CSS property to control the orientation and direction of slider type controls. One tricky detail will be getting it to behave predictably in the face of existing `writing-mode`/`direction` behavior, and maybe even the non-standard `orient=vertical`.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9832 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 22 January 2024 16:57:23 UTC