- From: velsinki via GitHub <sysbot+gh@w3.org>
- Date: Mon, 15 Jul 2024 19:52:29 +0000
- To: public-css-archive@w3.org
> which is why they [fail a bunch of WPT tests related to currentColor](https://wpt.fyi/results/css/css-color?label=master&label=experimental&aligned&q=current), at the moment. Aren't https://github.com/web-platform-tests/wpt/blob/master/css/css-color/color-mix-currentcolor-003.html and https://github.com/web-platform-tests/wpt/blob/master/css/css-color/color-mix-currentcolor-nested-for-color-property.html essentially about this problem statement? Browsers pass these tests, but they _do not_ apply the `color-mix` recursively but instead just inherit the used value. The test ```html <style> body { color: green; } div { color: color-mix(in srgb, currentColor 50%, white); } div > div { color: inherit; } </style> <div> <div>This text should be pale green</div> </div> ``` has reference ```html <style> div { color: color-mix(in srgb, green 50%, white); } </style> <div> <div>This text should be pale green</div> </div> ``` According to the strict interpretation, it could be `color-mix(in srgb, currentColor 50%, white)` -> `color-mix(in srgb, color-mix(in srgb, green 50%, white) 50%, white)` on the inner div as well, but that's not how the test passes. -- GitHub Notification of comment by velsinki Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10536#issuecomment-2229267251 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 15 July 2024 19:52:30 UTC