-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible to use pseudoclasses for synchronized highlight ? #8
Comments
@danielweck I liked this idea of yours, any idea how feasible it would be to implement? I'm not so familiar with how to programmatically control pseudoclasses (you know, until the browser vendors want to natively implement this ;) |
CSS Selectors Level 4: https://www.w3.org/TR/selectors-4/#time-pseudos
https://drafts.csswg.org/selectors-4/#time-pseudos
https://css4-selectors.com/selector/css4/time-dimensional-pseudo-class/ Key statement from the draft specification:
I will venture a guess and say that the chances of seeing consistent implementations of this proposed CSS feature in multiple web browsers within a reasonable timeframe ... are slim. To be precise, I am concerned that the host context of such CSS feature (e.g. HTML, or other technologies that embed / make use of CSS) would need to consistently implement time-domain semantics, whilst at the same time somehow exposing a mechanism for "sync media" to plug into in order to render its own synchronized highlights. |
So in response to:
...I would say: let's skip this for now, the specification is far from mature, let alone usable implementations. |
Ok, sounds good to me. We can start a document for future improvements and things to watch. |
PS: possible alternative to "time dimensional" => "highlight" pseudo-classes: https://drafts.csswg.org/css-pseudo-4/#highlight-pseudos Just like "time dimensional", this is probably a long shot until implementations, but I suspect consistent web browser support will be delivered sooner, because:
|
We're in communication - we may be a good use case for the highlight api: w3c/csswg-drafts#4307 |
Need to evaluate the applicability of the
:current
CSS pseudo class from CSS Selectors 4 (see https://www.w3.org/TR/selectors-4/#the-current-pseudo ). The:past
and:future
counterparts would provide additional semantics.The text was updated successfully, but these errors were encountered: