W3C home > Mailing lists > Public > public-css-archive@w3.org > April 2019

Re: [csswg-drafts] [selectors-4] additional resource state pseudo-classes for media elements (#3821)

From: Jer Noble via GitHub <sysbot+gh@w3.org>
Date: Fri, 26 Apr 2019 20:06:32 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-487184745-1556309190-sysbot+gh@w3.org>
@tabatkins, essentially yes. 

As a concrete example, some sites currently try to detect whether changing volume is supported by setting `video.volume` to some arbitrary value, and verifying whether that volume value "sticks". (Effectively, `let v = video.volume; video.volume *= 0.5; return v !== video.volume;`.) That doesn't work if the UA implements step 1 of the [effective media volume](https://html.spec.whatwg.org/multipage/media.html#effective-media-volume) algorithm.  We'd like to give those sites a way of determining this explicitly, without relying upon side effects or heuristics.

GitHub Notification of comment by jernoble
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3821#issuecomment-487184745 using your GitHub account
Received on Friday, 26 April 2019 20:06:34 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:46 UTC