Re: [csswg-drafts] [css-overflow-5] Bikeshed pseudoclasses for active scroll-marker (#10918)

The CSS Working Group just discussed `[css-overflow-5] Bikeshed pseudoclasses for active scroll-marker`, and agreed to the following:

* ``RESOLVED: `:current` is better than `:checked`, issue remains open while we look for better alternatives``

<details><summary>The full IRC log of that discussion</summary>
&lt;emilio> flackr: so in scroll-markers spec I used :checked, because it's a state that doesn't involve focus... but :checked is associated with form elements<br>
&lt;kizu> +1 to `:current`<br>
&lt;emilio> ... there was a suggestion to use `:current`<br>
&lt;emilio> ... related to `:past` and `:future`, tab objected to that<br>
&lt;fantasai> -> https://github.com/flackr/carousel/issues/28#issue-2406219421<br>
&lt;emilio> ... we can't use :active because things become :active while you interact with this<br>
&lt;miriam> q+<br>
&lt;kizu> `:scroll-target`?<br>
&lt;emilio> fantasai: fun historical link, on IE clicking a link to the same page would remain `:active`<br>
&lt;emilio> flackr: so there's precedent for `:active`!<br>
&lt;fantasai> s/to the same page/to a target on the same page/<br>
&lt;kizu> `:active-anchor`<br>
&lt;Rossen9> ack miriam<br>
&lt;fantasai> s/`:active`/`:active` as long as the browser was still targetting that ID/<br>
&lt;emilio> miriam: seems tab's objection to `:current` seems more about `:past` and `:future`<br>
&lt;emilio> ... `current` matches what I'd use in JS which is aria-current<br>
&lt;emilio> flackr: wouldn't mind `:current`<br>
&lt;keithamus> +1 to :current<br>
&lt;emilio> fantasai: my only concern with current is possible conflict with a different meaning of `:current`<br>
&lt;ydaniv> +1 to miriam<br>
&lt;emilio> emilio: does any browser implement `:current` with any other meaning?<br>
&lt;Zakim> astearns, you asked to be reminded at this time to go home<br>
&lt;emilio> (nobody knows)<br>
&lt;emilio> emilio: Gecko doesn't at least<br>
&lt;emilio> q?<br>
&lt;emilio> flackr: another thing to think about is whether `:current` makes sense for all use cases<br>
&lt;emilio> ... can't think of any, even if you use it for tabs, or scrolling content, or ???, `:current` feels right<br>
&lt;flackr> s/???/slides<br>
&lt;emilio> fantasai: current was designed to work as a styling for navigation or so for screen readers<br>
&lt;emilio> ... currently used for captions<br>
&lt;emilio> ... like the fact that it means the right thing<br>
&lt;emilio> ... but if we did this and we ever wanted to do something like that then it'd conflict<br>
&lt;emilio> flackr: should we try to resolve on `:current` for now?<br>
&lt;emilio> fantasai: yeah I think `:current` is better than `:checked`, we can keep the issue open<br>
&lt;emilio> astearns: reading MDN of the current use of `:current` it'd match the ancestor of the thing that's currently played<br>
&lt;emilio> ... so if you style a marker with `:current` it'd pop out everywhere<br>
&lt;emilio> dbaron: is it video or vtt?<br>
&lt;emilio> astearns: vtt<br>
&lt;emilio> emilio: isn't the vtt tree scoped?<br>
&lt;emilio> fantasai: if it isn't it should<br>
&lt;emilio> Rossen9: what's the issue with `:active`?<br>
&lt;emilio> fantasai: while you're clicking on the button that's `:active`<br>
&lt;emilio> ... don't mind reusing it but if you need that meaning...<br>
&lt;emilio> flackr: that wouldn't work for the link version of scroll markers<br>
&lt;emilio> fantasai: yeah you probably want something different then<br>
&lt;astearns> s/style a marker/style a marker for a carousel tab that is currently playing a video/<br>
&lt;emilio> [jokes]<br>
&lt;emilio> emilio: seems people thought `:current` is better than `:checked`<br>
&lt;fantasai> https://www.w3.org/TR/selectors-4/#time-pseudos<br>
&lt;emilio> PROPOSED: `:current` > `:checked`, issue remains open while we look for better alternatives<br>
&lt;emilio> RESOLVED: `:current` is better than `:checked`, issue remains open while we look for better alternatives<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10918#issuecomment-2380329944 using your GitHub account


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

Received on Saturday, 28 September 2024 01:04:07 UTC