W3C home > Mailing lists > Public > www-style@w3.org > January 2014

[selectors4] Time-dimensional pseudos need another spec to define a timeline

From: Simon Sapin <simon.sapin@exyr.org>
Date: Fri, 17 Jan 2014 10:00:51 +0000
Message-ID: <52D8FF53.90300@exyr.org>
To: www-style <www-style@w3.org>
Hi,

I find the current definitions of :current and other time-dimensional 
pseudo-classes a bit misleading:

> The :current pseudo-class represents the element, or an ancestor of
> the element, that is currently being displayed.


There are tons of slideshow systems out there based on HTML and 
JavaScript, where each slide is an HTML element. At any time, there is 
one slide being displayed, which matches perfectly the definition of 
:current.

But :current does not match any element in this case, because web 
browsers do not implement it that way. (They donít really know about the 
JavaScript-constructed "timeline" of slides.)


I suggest clarifying that these pseudo-classes depend on a timeline, and 
do not match anything unless the UA supports another spec (such as 
WebVTT) that defines such a timeline.

(This is similar to how Selectors depends on other specs to define "the 
language of a element" for :lang().)

Cheers,
-- 
Simon Sapin
Received on Friday, 17 January 2014 10:01:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:38 UTC