[csswg-drafts] [selectors-4] "effective media volume is mutable" pseudo-class for media elements (#3933)

hober has just created a new issue for https://github.com/w3c/csswg-drafts:

== [selectors-4] "effective media volume is mutable" pseudo-class for media elements ==
Split out from #3821.

In [ยง11 Resource State Pseudos](https://drafts.csswg.org/selectors/#resource-pseudos) we currently have the `:playing` and `:paused` pseudo-classes, which collectively address the use case of a custom "play/pause" media control which should appear as a play button or as a pause button depending on the current play state of the associated media element. In addition to the cases covered in #3821, a bunch of us (@beccahughes @mounirlamouri @padenot @jyavenard @eric-carlson @jernoble et al.) would like to mint a new pseudo-class to expose whether or not setting [the **volume** IDL attribute](https://html.spec.whatwg.org/multipage/media.html#dom-media-volume) would result in the element's [**effective media volume**](https://html.spec.whatwg.org/multipage/media.html#effective-media-volume) actually changing.

With such a pseudo-class, it would be be possible (without script) to show or hide custom volume controls based on whether or not using such a control would actually result in a user-audible change.

I have no specific proposal for a name. Bikeshedding very welcome. @AmeliaBR has [several suggestions](https://github.com/w3c/csswg-drafts/issues/3821#issuecomment-491097390).

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3933 using your GitHub account

Received on Tuesday, 14 May 2019 17:43:19 UTC