Remix.run Logo
jchw 2 days ago

Looks like this works on Chrome for Android, but Firefox doesn't seem to support HDR at all.

https://bugzil.la/hdr

Maybe some day.

matsemann 2 days ago | parent | next [-]

Feels like either Chrome or my android phone is cheating, because if I cover the hdr image with my finger and switch between Firefox and Chrome, the page background in Chrome is noticeable more grey than the one in Firefox.

lxgr 2 days ago | parent | prev | next [-]

Neither does Safari on macOS – which honestly seems like the correct behavior, given that this will inevitably be used by websites in user-hostile ways.

lights0123 2 days ago | parent [-]

Safari only shows HDR in videos, not photos. It's possible to just show a single-frame video though.

lxgr 2 days ago | parent [-]

And I could see Safari changing its behavior to only allow HDR for actually playing videos (or even playing videos with actually varying content, if websites start playing clever games with one second loops of still images), or maybe only after confirming an "I am wearing sunglasses right now" prompt.

zamadatix 2 days ago | parent | next [-]

If it were to become a real problem I'd sooner see Apple, of all vendors, leave it as one of the many settings flags in Safari than intentionally avoid or remove support for wide range media in their app.

Related: there is also a CSS property coming which allows sites to control which page content should be clamped to standard range or not. Worst case you can just add an * !important override in your Safari->Preferences->Advanced->Style Sheet if nobody else considers it problematic but you still wanted to clamp things (in Safari, otherwise you can just disable HDR).

lxgr 2 days ago | parent | next [-]

Apple is definitely not afraid to block otherwise widely available features behind flags or extra clicks. For example, Web Push is available on iOS only for "installed PWAs".

zamadatix 2 days ago | parent [-]

Specifically media support though, for which Apple has built their entire OS (both macOS and iOS) and app experience around having the best out of the box color experience for designers/aesthetics (e.g. bit depth, wide gamut, true tone type adjustments, hdr all widely adopted early for this reason). This is in contrast to your example of Web Push, which is the antithesis of their goals on how the OS should be used and what for.

The only reason Safari lacks HDR image support on macOS right now is it's their lowest priority platform for the feature. It's coming, it's supported on their other platforms, and it wasn't an unreviewed accident they've been working on it.

lxgr 2 days ago | parent | next [-]

Apple's days of their primary customers being photographers, designers etc. are long past, so I'm not sure I see the distinction between advertisers pushing their content by having it render brighter than #FFFFFF and web push notification spam.

I do believe that Apple generally has plans to implement HDR support in Safari, but I wouldn't be surprised if they immediately walked that back once we see abuse of the technology annoying regular users.

LoganDark 2 days ago | parent | prev [-]

> they've been working on it.

Could you provide a link to any recent communication from them about this, or are you just speculating based on that other platforms support it?

zamadatix 2 days ago | parent [-]

I don't know about a communication... but I can do one better! You can download the latest Safari Technology Preview on macOS, toggle the "Support HDR Display" feature flag, and see it working (for certain image formats and HDR encodings - it's a flag in preview for a reason). E.g. the images at https://ccameron-chromium.github.io/hdr-jpeg/index.html will be brighter (if your mac has an HDR display attached with HDR enabled) but not the images from this HN post yet.

LoganDark 2 days ago | parent [-]

very interesting, thank you!!

tshaddox 2 days ago | parent | prev [-]

Why would we expect this to become more of a problem than, say, websites playing audio quietly to encourage you to turn your volume up, than playing extremely loud audio?

zamadatix 2 days ago | parent [-]

Websites can't autoplay audio anymore (which is actually really annoying in a few use cases) precisely because of abuse.

I don't think it'll be problematic though because a site can already choose to show you images a lot more bothersome than a bright light (I say this as I type on a 1600 nit HDR monitor) already and that's not a particularly common problem to worry about either. Same for videos, which already HDR support in browsers.

tshaddox 2 days ago | parent [-]

> Websites can't autoplay audio anymore (which is actually really annoying in a few use cases) precisely because of abuse.

But this is hardly true. There are some complicated heuristics (like Chrome's "Media Engagement Index") but many websites can and do autoplay video and audio. And browser policies are even more relaxed for playing audio on user events (like clicking).

zamadatix 2 days ago | parent [-]

MEI (and the like) is what I'm referring to, though perhaps we look at this from different angles. Sites can still mark audio should autoplay but it's now up to the browser to decide if it actually does it (because shitty sites would abuse that).

jchw 2 days ago | parent | prev [-]

It looks like the current Safari developer preview supports it for images, according to the Mozilla bug.

new_user_final 2 days ago | parent | prev [-]

So many people push for more browser engines yet Firefox can't implement HDR in 6 years.

LoganDark 2 days ago | parent [-]

Wonder if Ladybird will ever support it. (Imagine HDR on SerenityOS!)