-
Notifications
You must be signed in to change notification settings - Fork 24
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
CSS dynamic-range-limit property #312
Comments
Web-Spec (in Draft) - https://drafts.csswg.org/css-color-hdr/#controlling-dynamic-range Post - w3c/csswg-drafts#9074 |
In practice, the browser default behavior is already From a power user point of view, I'd love to have a On many websites with user-generated content, such as Amazon or Instagram, SDR content such as text look dim next to HDR images and videos. Additionally, scrolling past images and videos with HDR (these often appear in the reviews section of Amazon listings) causes the whole display to flicker light and dark and back again several times, audio stuttering, and responsiveness to suffer for about a second or two. From a regular user's point of view, however, the browser default for this should probably be set to As far as abuse:
Another benefit of specifying behavior regarding HDR content in websites to the spec, whether through |
All browsers currently default to With respect to image elements, HDR image support is absent except on Chromium (which has the effect that things look like
Indeed there are some internal extensions doing exactly this.
HDR content that causes the eye to adjust like this is "bad HDR content". A good discussion of responsible use of HDR is here. Most phone-captured images fit into these guidelines (of course there are sometimes failures, but they are more an exception). I would argue that almost all phone-captured HDR video is currently "bad HDR content" (brighter but not better). The most recent version of macOS has started respecting the AMVE video tag, which causes iPhone-shot HDR video to be much less obtrusive. Chromium has also added AMVE support in Canary. We are also looking into further ways to encourage responsible HDR video.
This is a bug either in the OS or in the browser. The behavior has substantially improved in macOS Sequoia and recent Chromium updates.
There is a very analogous situation between HDR brightness and the volume of audio content. This is something that platforms have had to address at the content level. This has involved adjusting the volume of user-generated content to support a particular envelope (and also requiring that ads behave in this way). Fortunately, unlike audio, changing tabs will make obtrusive content go away. |
I concur with many of the concerns listed in #312 (comment). Looking at the spec draft, I am confused that this property is not inherited. Wouldn't you want it to affect all images in child nodes? I am also not convinced that the default value for |
Yes, it should read "inherited". This is what the WPT tests expect, so it's just a matter of updating the spec to match the tests and implementation.
All browsers display HDR video using There does exist some HDR content that is "just too bright", and doesn't coexist well with SDR content at all. That's a "the content is bad" problem, and solving it via a default of BTW, an example of "bad extra-bright HDR content" is this video from this bug. An example of good HDR content (along with authorship recommendations) is this page. The HDR photos shot by iPhones and Pixel phones (and all other phones I've tried) are also quite well-behaved. So the momentum of capture is moving away from things like that bad example video. |
We can't assume that web authors always have the best intentions; having |
Yes, antagonizing ads can exploit HDR capabilities. This is already a potential issue. See this site for a (not-annoying) example of use of that capability. In the original explainer, it's mentioned that:
Changing the default value will not solve this problem, because an ad that wishes to be excessively attention-grabbing can simply set There are several things that browsers should consider pursuing, including:
But I think that these need to be separate APIs, because their behaviors ("force children" versus "set default that children inherit but can override") are quite different. |
You are right, this was an error, fixed in w3c/csswg-drafts@b407f7a
I think you are right there also, but that is not what the spec says currently so raising an issue |
WebKittens
@smfr
Title of the spec
CSS dynamic-range-limit
URL to the spec
https://github.com/ccameron-chromium/hdr-headroom-limit/blob/main/EXPLAINER.md
URL to the spec's repository
https://github.com/ccameron-chromium/hdr-headroom-limit/blob/main/EXPLAINER.md
Issue Tracker URL
No response
Explainer URL
No response
TAG Design Review URL
No response
Mozilla standards-positions issue URL
No response
WebKit Bugzilla URL
No response
Radar URL
No response
Description
This adds a CSS property to control the brightness of high dynamic range content.
It is very similar to UIImageView preferredImageDynamicRange API, in that it specifies qualitative HDR levels (standard, constrained-high, and high) that may be interpreted by the user agent to provide the best user experience, instead of quantitative HDR headroom values.
The text was updated successfully, but these errors were encountered: