- From: Lucas Garron via GitHub <sysbot+gh@w3.org>
- Date: Wed, 08 Jan 2025 08:12:18 +0000
- To: public-css-archive@w3.org
This would be really, really useful for a Firefox bug that is going unaddressed: https://bugzilla.mozilla.org/show_bug.cgi?id=1793091 In theory, the "best of both worlds" for sites that want HDR images is to use a `.avif` file with an HDR color space. Safari and Chrome will apply very reasonable tone mapping. However, Firefox does not apply tone mapping, and the image shows up super dark: ![clipboard](https://github.com/user-attachments/assets/bbb94f30-489b-44df-b285-85c069e4d43c) I can think of ways to work around this, but they all involve either: - Server side sniffing - CSS hacks (as compared to declarative HTML) - Client-side JavaScript to fix up the DOM based on user agent sniffing (or maaaybe HDR support sniffing, I haven't tested this because it's the worst form of progressive enhancement) As there are more image formats coming down the pipeline, it would be really nice to have a way to do this using `image-set` instead of manually testing and sniffing for browser capabilities (and bugs, in some cases). -- GitHub Notification of comment by lgarron Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8767#issuecomment-2577010063 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 8 January 2025 08:12:19 UTC