-
Notifications
You must be signed in to change notification settings - Fork 708
[selectors-4] Define a number of new pseudo-classes for matching the state of media elements. #6219
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
Conversation
…and :volume-locked pseudo-classes.
cc @jernoble |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r+ after changes
selectors-4/Overview.bs
Outdated
@@ -36,6 +36,14 @@ spec:css-pseudo-4; type:selector; | |||
text: ::first-line | |||
text: ::first-letter | |||
</pre> | |||
<pre class="anchors"> | |||
urlPrefix: https://html.spec.whatwg.org/multipage/; spec: HTML |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of these definitions already exist in HTML and are reasonably marked up, they're just not exported.
Please swap to specifying these in link-defaults, and then probably ask HTML to export them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 59f2bc1. Export of those terms requested in whatwg/html#6603.
selectors-4/Overview.bs
Outdated
@@ -2403,23 +2411,63 @@ Resource State Pseudos</h2> | |||
particularly images/videos, | |||
and allow authors to select them based on some quality of their state. | |||
|
|||
<h3 id="video-state"> | |||
Video/Audio Play State: the '':playing'' and '':paused'' pseudo-classes</h3> | |||
<h3 id="video-state"> <!-- keeping this ID because Cool URIs Don't Change --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, but no need to explain your ID choices. ^_^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed in 6599d0b.
selectors-4/Overview.bs
Outdated
(This includes both an explicit “paused” state, | ||
and other non-playing states like “loaded, hasn't been activated yet”, etc.) | ||
|
||
The <dfn>:seeking</dfn> pseudo-class represents an element |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This spec is tab-indented, please stick with that consistently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 6599d0b.
Overall looks good. Only comment left is that maybe we also want a generic (I could see us instead recasting the whole thing into a |
r+ for merging what's currently here; we can either address the |
Let's raise it as a separate / followup issue, since we don't have a WG resolution for it. (Not that I think it'll be hard to get one; you make a compelling argument.) Wanna file the followup issue? Also, I'm not pressing the "squash and merge" button since I'm not an editor. Would you care to pull the trigger, @tabatkins? |
We resolved to add these in Toronto in June 2019.
This is a first draft; I'm sure the text could use some work before merging.
Fixes #3821.
Fixes #3933.