See discussion on whatwg: http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2011-April/thread.html#31315 Per WebKit contributor meeting discussion: Ready states: - error - unknown - buffering Runtime states: - playing Media characteristics: - has-closed-captioning - has-audio - has-video - has-duration Example of how to use for default UA stylesheets: - Browser A always wants to display a closed captioning button, but have it disabled when there are no closed captioning. Default style for video:has-closed-captioning is disabled. - Browser B only wants to display a closed captioning button when present. Default style for video:has-closed-captioning is display:none
Looks like this will be a good addition. If no one is working on this I will try to submit a patch. Is this a final list of media pseudo classes that we have planned to add? Also one more thing, what does this "unknown" state mean?
Eric, do you remember what "unknown" meant? I lost track of this :)
(In reply to comment #2) > Eric, do you remember what "unknown" meant? I lost track of this :) I don't recall exactly, maybe for an element with preload=none?
(In reply to comment #3) > (In reply to comment #2) > > Eric, do you remember what "unknown" meant? I lost track of this :) > > I don't recall exactly, maybe for an element with preload=none? Maybe. Arun, I would recommend starting with a small set of pseudo-classes and iterating on that.
> Maybe. Arun, I would recommend starting with a small set of pseudo-classes and iterating on that. Ok, Thanks. I will start with small set. May be, media characteristics pseudo classes in first patch in separate bug.
Selectors 4 has recently been updated to include the following pseudo-classes: :seeking :buffering :stalled :muted :volume-locked These are in addition to these ones which already existed: :playing :paused See the spec for the details: https://drafts.csswg.org/selectors-4/#resource-pseudos
<rdar://problem/77344273>