- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Fri, 08 Nov 2024 00:19:30 +0000
- To: public-css-archive@w3.org
I'm curious what value knowing the orientation in ARIA brings. ------- I agree that (ab)using `writing-mode` and `direction` for this is pretty hacky. We really should just add a dedicated property for it instead; those writing orientation properties have side effects we don't really want to invoke. Quick proposal: ``` slider-orientation: [ inline | block | self-inline | self-block ] || [ start | end | self-start | self-end ] ``` * First value controls whether it's aligned with the inline axis ("horizontal") or block axis ("vertical"). Per usual for these sorts of values, plain values are relative to the containing block's writing-mode, self-* are relative to the element's own writing-mode. * Second value sets whether the "low" value is toward the start side of that axis, or the end side. Again, plain values use the containing block's direction, self-* use the element's own direction. If we give it an initial value of `self-inline self-start`, this'll automatically play nicely with the existing writing-mode/direction hacks, I believe, and in the default case (where you aren't setting either of those properties) will correctly give a horizontal slider with the low value toward the left (in English). You can also override that to, say, `inline start`, and then use writing-mode/direction to change how the *text* in it renders without affecting the slider itself. -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9832#issuecomment-2463474930 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 8 November 2024 00:19:31 UTC