Re: [csswg-drafts] [css-color-hdr] Initial value of `dynamic-range-limit` (#11429)

The CSS Working Group just discussed ``[css-color-hdr] Initial value of `dynamic-range-limit` ``.

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> ccameron: should it be auto or no-limit?<br>
&lt;fantasai> ccameron: I'm sympathetic to idea that if we're doing this ex-novo, make HDR opt in and whatever for the default<br>
&lt;fantasai> ccameron: but given every browser is shipping HDR on video by default<br>
&lt;fantasai> ccameron: and HDR images is not implemented yet only due to technical complexity<br>
&lt;fantasai> ccameron: I think UA should pull down everything together, and e.g. UA limits to 2x and you have to hint that you want HDR to get it<br>
&lt;fantasai> ccameron: or have mode where try to be smart in that property<br>
&lt;weinig> q+<br>
&lt;fantasai> ccameron: right now UA can do anything<br>
&lt;fantasai> ccameron: But I think everything should be limited on a page together<br>
&lt;fantasai> ccameron: if global limit, then adjust<br>
&lt;fantasai> ccameron: if there's behavior we want to care about<br>
&lt;fantasai> ccameron: better to let HDR images shine out, if too bright, that's just bad content<br>
&lt;fantasai> ccameron: clear signal that your HDR content is not authored in a good way<br>
&lt;fantasai> ccameron: we want people to integrate in a good way<br>
&lt;fantasai> ccameron: encourage people to create good content<br>
&lt;fantasai> ChrisL: I tend to agree with that<br>
&lt;fantasai> ChrisL: e.g. you could create lime green with flashing gif<br>
&lt;ccameron> I haven't been to Geocities that recently....<br>
&lt;fantasai> ChrisL: we don't limit that<br>
&lt;astearns> ack weinig<br>
&lt;fantasai> weinig: piece we're missing is, what's the goal of this property?<br>
&lt;fantasai> weinig: establish goal, then we can figure out our values<br>
&lt;fantasai> weinig: but without that, it's hard for us to make smart decisions<br>
&lt;fantasai> weinig: general premise of protecting people from poorly designed website is not our battle<br>
&lt;fantasai> weinig: But author may not know the source of images, so having author's abilitiy to limit<br>
&lt;fantasai> weinig: in this index, we're going to constrain HDR, because we dont' know what they contain<br>
&lt;fantasai> weinig: let's not waste that power<br>
&lt;fantasai> weinig: but default should be no limit, no use case for auto<br>
&lt;weinig> fantasai: believes that WebKit's position was that the initial value should be constrained<br>
&lt;weinig> fantasai: and things on a case by case basis should be marked unconstrained by authors<br>
&lt;weinig> fantasai: unfortunately not sure of the details, smfr would know more<br>
&lt;weinig> fantasai: authors do have the issue of things like 3rd party content, ads,<br>
&lt;ccameron> q+<br>
&lt;weinig> fantasai: if the default is no-limit, those ads might do bad things, and they would not know, because things works fine now<br>
&lt;astearns> ack fantasai<br>
&lt;fantasai> ads or user-generated content<br>
&lt;astearns> ack ccameron<br>
&lt;weinig> ccameron: would it be better to have a global hint?<br>
&lt;weinig> ccameron: we have to deal with the fact that video is already not constrained today<br>
&lt;weinig> ccameron: lots of people count on that<br>
&lt;weinig> fantasai: webkit/apple thinks a ua style sheet for video would help<br>
&lt;fantasai> ccameron: some browsers are shipping HDR images already, would break that behavior<br>
&lt;weinig> ccameron: for chrome, this would break things for images and webgpu canvas, which have already shipped<br>
&lt;fantasai> ccameron: hard to explain why we have this default a few years from now<br>
&lt;fantasai> ccameron: why not have a global signal<br>
&lt;fantasai> ccameron: whole page, if you want to keep the old behaviors, you need to opt into it<br>
&lt;fantasai> ccameron: roll that out slowly later<br>
&lt;fantasai> weinig: 2 weeks ago, position was that webkit/apple really wanted images also to be HDR unconstrained<br>
&lt;fantasai> weinig: in addition to video<br>
&lt;fantasai> fantasai: I can't remember which elements were proposed to except. ^_^;;<br>
&lt;fantasai> weinig: What if we split property in two, and have one limit apply to things like video/image/canvas -- replaced content<br>
&lt;fantasai> weinig: and separate one that applies to CSS colors etc.<br>
&lt;fantasai> weinig: then you could decide... is bg one or the other<br>
&lt;Said> q+<br>
&lt;astearns> ack Said<br>
&lt;fantasai> Said: I've been working with HDR for awhile now, and I feel it is really distracting to see HDR and SDR together in the same page<br>
&lt;fantasai> Said: I tried to get high quality HDR, but still same experience<br>
&lt;fantasai> Said: So it makes sense to me, to always have mixed content always be constrained<br>
&lt;ccameron> q+<br>
&lt;astearns> q+<br>
&lt;fantasai> Said: and only allow no-limit for fullscreen(?)<br>
&lt;astearns> ack ccameron<br>
&lt;fantasai> Said: This is my experience with SDR and HDR in the same page<br>
&lt;fantasai> ccameron: Right now the UA is free to do that, to limit all the HDR in the page to nothing for e.g. background windows (like Preview does on MacOS)<br>
&lt;fantasai> ccameron: and they can also limit the range heuristically, based on outlines<br>
&lt;fantasai> ccameron: Key thing is that the limit is imposed by UA on all content, so that page is affected all together, not element by element<br>
&lt;fantasai> ccameron: dynamic-range-limit property is author saying what they wayt<br>
&lt;fantasai> ccameron: if UA wants to do something beyond that, is compatible<br>
&lt;Said> q+<br>
&lt;fantasai> ccameron: Sympathetic to opt-in idea, but given where we are, disagree.<br>
&lt;fantasai> astearns: Wrt separate properties idea, aside from images and video, you can define a bg color as HDR color<br>
&lt;fantasai> astearns: if we decide initial value of dynamic-range-limit is constrained, then it's double-opt-in for that color? You'd have to specify the color and also raise the limit<br>
&lt;fantasai> ChrisL: You'd still get the color, just a more subdued color<br>
&lt;fantasai> astearns: That's a fair argument for not having a constraint, since we tend to avoid double opt in<br>
&lt;ChrisL> s/the color/an HDR color<br>
&lt;fantasai> weinig: We would re-imagine existing CSS colors as all being HDR capable, as long as their components were large enough<br>
&lt;astearns> ack fantasai<br>
&lt;fantasai> weinig: it wouldn't be a double opt in, you just need a color bright enough to warrant using some headroom<br>
&lt;astearns> ack astearns<br>
&lt;weinig> fantasai: the idea that the UA can do anything it wants<br>
&lt;weinig> fantasai: works well in cases where the UA has the final say, like background window<br>
&lt;weinig> fantasai: but it doesn't work well when the author overriding things<br>
&lt;weinig> fantasai: in that case, a property makes sense<br>
&lt;weinig> fantasai: element by element makes sense<br>
&lt;weinig> fantasai: but a different default for fullscreen or loaded alone might make sense<br>
&lt;weinig> fantasai: but allowing a page to have a mix of HDR  and non-HDR might make sense too<br>
&lt;weinig> fantasai: like YouTube, where there is video, but also other content<br>
&lt;weinig> fantasai: but only the main video should be HDR<br>
&lt;weinig> fantasai: magic limits later seems worse<br>
&lt;weinig> fantasai: should figure this out now, and make it work with the cascade<br>
&lt;weinig> fantasai: weird huerstics are worse, viewport metatag is awful<br>
&lt;astearns> q+<br>
&lt;astearns> ack Said<br>
&lt;fantasai> Said: We should take consideration the default, any possible auto values, take into consideration the transition<br>
&lt;fantasai> Said: At this time [missed]<br>
&lt;fantasai> Said: For example eBay, suppose someone decided "well, now all browsers support HDR, let's use this ability"<br>
&lt;fantasai> Said: [missed2]<br>
&lt;fantasai> astearns: I'm not sure I understand the story of having a constrained default be useful if we are also specifying that videos and images are not constrained for compat reasons<br>
&lt;fantasai> astearns: story of page with a lot of videos, if videos have their headroom expanded in UA stylesheet, that default is doing nothing for that case<br>
&lt;astearns> ack astearns<br>
&lt;fantasai> weinig: We have to figure out and agree on our goal<br>
&lt;fantasai> weinig: sounds like we dont' quite agree on it<br>
&lt;ccameron> q+<br>
&lt;fantasai> weinig: is the goal that videos, images are constrained or unconstrained? constrained in some circumstances? browsers can have different goals?<br>
&lt;fantasai> weinig: I see different goals here. We need to converge on the goal.<br>
&lt;fantasai> weinig: Another issue is that chrome has shipped this, so we also potentially have a compat problem here<br>
&lt;fantasai> weinig: Maybe Apple can give a concerete proposal<br>
&lt;fantasai> s/concerete/concrete/<br>
&lt;fantasai> Said: My understanding is that we like to provide the nicest experience for the user even during the transition period<br>
&lt;fantasai> Said: Having HDR without constraint doesn't seem nice<br>
&lt;fantasai> Said: so we want the default to be constrained-high for images<br>
&lt;astearns> ack ccameron<br>
&lt;fantasai> ccameron: One of my goals is to not lull people into the idea that they have good content because it looks good by default<br>
&lt;fantasai> ccameron: I want to show exactly what was specified up to capabilities of the machine<br>
&lt;fantasai> ccameron: and hope this will inform people to make good choices about how they use HDR<br>
&lt;Said> q+<br>
&lt;fantasai> ccameron: if specify too much, and end up getting 2x as bright because ...<br>
&lt;fantasai> ccameron: There is concern that I'm authoring to 10, but not knowing it<br>
&lt;fantasai> ccameron: HDR video authored with PQ is usually quite good.<br>
&lt;fantasai> ccameron: HDR images on iPhone, Pixel, etc are also good. They don't blow your eyes out.<br>
&lt;fantasai> ccameron: But ?? video shot at iPhone and Pixel is way too bright, looks bad, ruins people's eyes<br>
&lt;fantasai> ccameron: problem with that is, people were allowed to create the content without seeing what they're specifying<br>
&lt;fantasai> ccameron: I think it's better to show what was specified, and hope they are not making it unpleasant to view<br>
&lt;fantasai> ccameron: Should it turn out that we're wrong, and ppl can't do this right even when seeing what they're producing, then maybe ratchet down the defaults or global switch or something<br>
&lt;fantasai> ccameron: If we limit things by default, they will create bad content because won't see what they're specifying<br>
&lt;fantasai> ccameron: I want to give ecosystem a chance to get it right<br>
&lt;fantasai> ccameron: otherwise will be bad forever<br>
&lt;astearns> ack Said<br>
&lt;fantasai> Said: I disagree with ccameron<br>
&lt;fantasai> Said: Here's an example<br>
&lt;fantasai> Said: In WebKit, we limit animation to 60fps. But in Chrome, it uses device frame rate<br>
&lt;fantasai> Said: Chrome has already hit a problem where the frame rate can be 200 or 500, some device has this kind of speed<br>
&lt;fantasai> Said: and Chrome can't cope with this speed, and begins to limit it<br>
&lt;fantasai> Said: So I think unlimited would give you a bad experience<br>
&lt;astearns> ack fantasai<br>
&lt;fantasai> Said: We want to give the normal user the best experience.<br>
&lt;weinig> fantasai: Chris is making the argument we should give the author the opportunity to get it right<br>
&lt;weinig> fantasai: I am making the argument that there is a bunch of content out there where the author is not going to know, and user will get annoyed<br>
&lt;weinig> fantasai: not just about the transition period<br>
&lt;weinig> fantasai: constrained is a better default for the web<br>
&lt;weinig> fantasai: sophisticated authors will get it right<br>
&lt;weinig> fantasai: but many won't know how to make things right<br>
&lt;weinig> fantasai: better to make things opt in<br>
&lt;weinig> fantasai: you should not need to learn everything to use CSS<br>
&lt;ccameron> q+<br>
&lt;weinig> fantasai: shouldn't have to learn to turn down the headroom<br>
&lt;weinig> astearns: could be argued in either way<br>
&lt;astearns> ack ccameron<br>
&lt;weinig> astearns: could be hard to figure out how to make your photos look right<br>
&lt;fantasai> fantasai: If you want extra brightness you're expecting but not getting, then you can go looking for how to do it.<br>
&lt;fantasai> fantasai: but if your page is tacky and uncomfortable, as someone who isn't a designer, you might not even know why or that it's fixable<br>
&lt;fantasai> ccameron: I'm sympathetic to that argument, but in that case I would suggest a default of SDR<br>
&lt;fantasai> ccameron: since constrained high is [missed3]<br>
&lt;fantasai> ccameron: I could go for that. And maybe there's a bridge to that somehow.<br>
&lt;fantasai> ccameron: Keep going back to global thing.<br>
&lt;weinig> q+<br>
&lt;fantasai> ccameron: (something about gainmaps)<br>
&lt;astearns> ack weinig<br>
&lt;fantasai> ccameron: even if you have a very small headroom<br>
&lt;fantasai> weinig: I do think that the ideal default would be SDR<br>
&lt;fantasai> weinig: I would ask the browser vendors if that is a possibility, even though it would make some content that currently works not do what is expected<br>
&lt;fantasai> weinig: majority of content that wants to benefit from HDR values will learn about these properties<br>
&lt;fantasai> weinig: and in time get those properties set on them<br>
&lt;ccameron> q+<br>
&lt;fantasai> weinig: whereas if we start with unconstrained or a middle ground, it will always be fighting one battle or the other<br>
&lt;fantasai> weinig: both argument fantasai made and astearns made, that each group won't get behavior that makes sense<br>
&lt;fantasai> weinig: it would take video that's already HDR and make it not<br>
&lt;fantasai> weinig: but maybe that's OK<br>
&lt;fantasai> weinig: maybe there aren't enough websites that having this blip of compatibility isn't doable<br>
&lt;astearns> ack ccameron<br>
&lt;fantasai> ccameron: In terms of video, one difficulty is that right now tone-mapping videos to SDR is to do terrible and undefined things to the video<br>
&lt;fantasai> ccameron: One of the nice things about images is that, from the moment they were defined in terms of SDR and in HDR, its' all parameterized in terms of headroom and it's great<br>
&lt;fantasai> ccameron: but for video, don't have that<br>
&lt;fantasai> ccameron: in many cases no ability to even tell the OS to render under constraints<br>
&lt;fantasai> ccameron: so that limits what we can do for video. Even if we want to, in some OSes it is technically impossible<br>
&lt;fantasai> ccameron: I do horrible things to make it "work" in Chrome<br>
&lt;fantasai> ccameron: We're working on standards to improve the situation<br>
&lt;fantasai> ccameron: There's work going on in standards to improve video, to have double-graded content<br>
&lt;fantasai> ccameron: but for right now.... it would be a big amount of work<br>
&lt;fantasai> ccameron: and it yes, there are pages that serve HDR content, usually professional stuff and they are paying for the bandwidth<br>
&lt;fantasai> ccameron: I think there's a chance we could push in a different direction in the future, but really built in right now<br>
&lt;fantasai> ccameron: Can we switch topic to names?<br>
&lt;fantasai> ChrisL: +1<br>
&lt;fantasai> astearns: I wonder if we can decide on an sdr default with video override in the UA stylesheet<br>
&lt;fantasai> weinig: I think we really need Simon for that<br>
&lt;fantasai> weinig: since I proposed that last time, and he had objected<br>
&lt;fantasai> astearns: OK, we'll take that back to the issue for now<br>
&lt;ChrisL> q+<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11429#issuecomment-2718954138 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 12 March 2025 19:56:36 UTC