-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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.types.color.oklch - Relative color bug (partial support) until Chromium 121 #26041
Labels
data:css
Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS
needs triage
This issue needs to be confirmed
Comments
1 task
@marcustyphoon Thanks for reporting. Can you share the exact steps you took to reproduce the issue, ideally with screenshots? This would help us significantly to reproduce it. 🙏 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
data:css
Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS
needs triage
This issue needs to be confirmed
What type of issue is this?
Incorrect support data (example: BrowserX says "86" but support was added in "40")
What information was incorrect, unhelpful, or incomplete?
Browser compat data for relative
rgb()
notes partial support in Chromium 119-121.There's also a similar qualifier for Chromium 119-124 for
hsl()
andhwb()
. There is not, however, a qualifier for any versions foroklch()
,oklab()
,lch()
,lab()
andcolor()
.In testing, I'm observing a similar issue in relative
oklch()
in Chromium 121 (but not 122, 123, 124, 125, or Chrome 132). Thel
parameter is serialized to a 0-100 range instead of 0-1 — kind of the opposite of the quoted message, but presumably stemming from the same code.What browsers does this problem apply to, if applicable?
Chromium (Chrome, Edge 79+, Opera, Samsung Internet)
What did you expect to see?
I assume that this means that at least some subset of relative
oklch()
,oklab()
,lch()
,lab()
andcolor()
should have the same partial support qualifier as relativergb()
.Did you test this? If so, how?
Observed the result of
oklch(from #EDE6D1 calc(l - 0.3) c h)
being significantly different than the base color in Chromium 122, 123, 124, and 125 (MacOS Arm64), but being essentially the same as the base color in Chromium 121.oklch(from #EDE6D1 calc(l - 30) c h)
works.Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
Couldn't find the relevant bug in the Chromium bug tracker, sorry. Can't figure out how to filter it.
Do you have anything more you want to share?
No response
MDN URL
https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/oklch
MDN metadata
MDN page report details
css.types.color.oklch
The text was updated successfully, but these errors were encountered: