Bug 59867
Summary: | Add support for media pseudo-classes | ||
---|---|---|---|
Product: | WebKit | Reporter: | Dimitri Glazkov (Google) <dglazkov> |
Component: | Media | Assignee: | 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)
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Arun Patole
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)
Eric, do you remember what "unknown" meant? I lost track of this :)
Eric Carlson
(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)
(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
> 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
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
<rdar://problem/77344273>