-
Notifications
You must be signed in to change notification settings - Fork 27
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
Media pseudo classes: :paused
/:playing
/:seeking
/:buffering
/:stalled
/:muted
/:volume-locked
#224
Comments
Sam suggested we might look into "trickle" for stalled cases... might help. Otherwise, there might be a way of hacking it with a service worker. |
Tests ported web-platform-tests/wpt#36565 |
Does |
I found this comment about Unless the spec is clarified about what the psuedo-class does and it can be tested, I think that should be out of scope. |
Sure, we can exclude |
Even better would be if it was defined though. Does anyone know what it does? |
@foolip do you mean beyond what's specified in Selectors 4? I'm just guessing here, but presumedly the media format somehow forbids changing the volume of the |
I asked internally. This is what I learned: On some platforms, programmatically changing the media’s So, websites shouldn’t display their own volume controls on those platforms. Using That makes total sense! |
Thanks @marcoscaceres! I've filed w3c/csswg-drafts#8061 to clarify the spec. I used to work on media elements and think this looks like a pretty simple thing to implement, but I do wonder about the rationale. Having gone through the State of CSS 2022 results to produce #248, there wasn't any mention of this feature. Is there other evidence of web developer demand for this? |
I've also filed https://bugs.chromium.org/p/chromium/issues/detail?id=1383480. |
Implementation of :playing/:paused is behind a test flag in Blink, but shipping[1] seemingly stalled because there was no html spec for the media states. Is that properly in place now? [1] https://groups.google.com/a/chromium.org/g/blink-dev/c/kz3w-yOMDks/m/Ue71o4xYAAAJ |
Thank you for proposing media pseudo classes for inclusion in Interop 2023. We wanted to let you know that this proposal was not selected to be part of Interop this year. We had many strong proposals, and could not accept them all. This should not be taken as a comment on the technology as a whole, and resubmitting a proposal for this feature as part of a future round of Interop would be welcome. For an overview of our process, see the proposal selection summary. Thank you again for contributing to Interop 2023! Posted on behalf of the Interop team. |
Description
Pseudo classes to target specific states of video/audio.
Rationale
They are implemented in WebKit, but not Blink/Gecko, seems like low hanging fruit for web developers to have those implemented everywhere.
Specification
W3C: https://w3c.github.io/csswg-drafts/selectors-4/#resource-pseudos
Tests
WPT:
css/selectors/media/media-loading-state.html
css/selectors/media/media-playback-state.html
css/selectors/media/sound-state.html
The text was updated successfully, but these errors were encountered: