Skip to content
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-color-hdr] Should CSS filters produce HDR results? #11752

Open
smfr opened this issue Feb 19, 2025 · 3 comments
Open

[css-color-hdr] Should CSS filters produce HDR results? #11752

smfr opened this issue Feb 19, 2025 · 3 comments

Comments

@smfr
Copy link
Contributor

smfr commented Feb 19, 2025

Should filter: brightness(2) result in HDR output on a capable display?

@smfr smfr added the css-color-hdr CSS HDR extension label Feb 19, 2025
@smfr
Copy link
Contributor Author

smfr commented Feb 19, 2025

cc @ccameron-chromium

@ccameron-chromium
Copy link
Contributor

Scattered thoughts:

My inclination is that this shouldn't make things that weren't HDR become HDR. It should clamp colors to wherever they were clamped before.

But what happens if this is applied to already-HDR content, or a mix of HDR content?

This API is not a good one for enabling HDR, because it works in absolute headroom (and we don't want to expose that, either for privacy or for performance reasons).

@svgeesus
Copy link
Contributor

CSS filters are, as currently specified and implemented, restricted to sRGB and clamped to the [0, 1] range. Even extending them to SDR P3 is problematic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants