Re: [csswg-drafts] [css-overflow-5] Selecting ::scroll-marker based on relationship to scroll target (#11600)

The CSS Working Group just discussed `[css-overflow-5] Selecting ::scroll-marker based on relationship to scroll target`, and agreed to the following:

* `RESOLVED: add :target-before and :target-after`

<details><summary>The full IRC log of that discussion</summary>
&lt;JoshT> astearns: are we any closer or go back to the issue?<br>
&lt;JoshT> flackr: there is one issue: target past and future to refer to the target current marker<br>
&lt;JoshT> ... it wouldn't solve the other problem of styling the thing targetted. I don't know if we have a proposal for that yet<br>
&lt;JoshT> TabAtkins: I don't like the name past and future. would prefer before and after<br>
&lt;JoshT> ... but we are saying yeah to it and no one commenting on it otherwise<br>
&lt;JoshT> ... do we want to resolve to do it?<br>
&lt;JoshT> fantasai: I can see why that makes sense. but we do have 'current' which pairs with past and future<br>
&lt;JoshT> TabAtkins: I think current works on various axis<br>
&lt;JoshT> ... I think before, current and after are reasonable adjectives<br>
&lt;JoshT> florian: it doesn't feel like a different axis.<br>
&lt;JoshT> TabAtkins: there is no time in 'steps'.<br>
&lt;JoshT> fantasai: should we go back and look at other places where we use these terms?<br>
&lt;JoshT> TabAtkins: the pseudo-class for ????? uses it as well.<br>
&lt;fantasai> s/?????/highlights API<br>
&lt;schenney> Specifically ::search-text:current<br>
&lt;JoshT> astearns: no strong opinion either way. would like to use before and after consistently<br>
&lt;JoshT> fantasai: currently used for time axis, so maybe we should revisit it<br>
&lt;schenney> Nobody has implemented past/future  in this context, so no problem changing it.<br>
&lt;JoshT> TabAtkins: should be brought up in separate issue<br>
&lt;fantasai> s/revisit it/revisit usage in the highlights api/<br>
&lt;JoshT> astearns: resolution to add target-before and target-after?<br>
&lt;JoshT> TabAtkins: match the other targets in the scroll marker group before or after the currently targeted one<br>
&lt;JoshT> florian: are we talking about a pseudo-class before and after?<br>
&lt;JoshT> TabAtkins: yes<br>
&lt;JoshT> florian: I think this is confusing having :before and :after<br>
&lt;kizu> `:target-before:target::before`<br>
&lt;JoshT> TabAtkins: it's :target-before and :target-after<br>
&lt;JoshT> astearns: would anyone like more time to consider this?<br>
&lt;JoshT> ... anyone who would object?<br>
&lt;JoshT> ... names can be bikeshedded<br>
&lt;JoshT> fantasai: I'm OK but Tab can you open issue about highlight API?<br>
&lt;JoshT> TabAtkins: yes<br>
&lt;JoshT> RESOLVED: add :target-before and :target-after<br>
</details>


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


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

Received on Wednesday, 11 June 2025 16:35:15 UTC