Re: [csswg-drafts] [selectors] Time dimensional pseudo-classes that get a selector list as arguments are weird. (#9748)

The use case here would be reading through a document and highlighting what is being read. Suppose you want to highlight the paragraph in question, or if you want to highlight the section in question.

The `:current` form is, in effect, contrasting with `:past` and `:future`. The `:current()` form lets you get at the particular element you might want to style when you have a recursive structure, because it's sensitive to nesting structure.

Having `:current` only map to the innermost element that is current isn't particularly useful, because people put all kinds of markup for all kinds of different purposes, and you almost never want the actually innermost element. (You could get it with `:current(*)`. But it's not very useful.)

See https://lists.w3.org/Archives/Public/www-style/2011Jun/0236.html for the background here.

-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9748#issuecomment-1874776489 using your GitHub account


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

Received on Wednesday, 3 January 2024 02:25:21 UTC