Bug 59867

Summary: Add support for media pseudo-classes
Product: WebKit Reporter: Dimitri Glazkov (Google) <dglazkov>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: arun.patole, eoconnor, eric.carlson, jer.noble, ntim, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Bug Depends on: 71216    
Bug Blocks: 58345    

Dimitri Glazkov (Google)
Reported 2011-04-30 10:10:07 PDT
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
Attachments
Arun Patole
Comment 1 2011-10-20 01:42:00 PDT
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?
Dimitri Glazkov (Google)
Comment 2 2011-10-20 08:50:38 PDT
Eric, do you remember what "unknown" meant? I lost track of this :)
Eric Carlson
Comment 3 2011-10-20 09:08:15 PDT
(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?
Dimitri Glazkov (Google)
Comment 4 2011-10-20 09:57:36 PDT
(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.
Arun Patole
Comment 5 2011-10-21 05:03:42 PDT
> 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.
Theresa O'Connor
Comment 6 2021-04-29 14:46:24 PDT
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
Radar WebKit Bug Importer
Comment 7 2021-04-29 14:46:36 PDT
Note You need to log in before you can comment on or make changes to this bug.