- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Fri, 23 May 2025 21:39:18 +0000
- To: public-css-archive@w3.org
> Also, curious, does color-scheme() use the color-scheme property of the parent (like style queries?) or the element's? Yeah, the element itself, matching `light-dark()`'s behavior. `light-dark(A, B)` should be exactly syntax sugar for `if(color-scheme(light): A; else: B)`, I think (except that it's a normal function, not an arb-sub function). > Well, I meant light-dark() for images is probably common as well, but if you don't think that's needed. I mean, I could be convinced. ^_^ I was just saying that the "any value type" function should be handled by `if()`. It looks like you're shooting for this functionality to be baked into `light-dark()` itself? I think that would work, we'd just need to dupe the argument grammar and replace color with image. Please propose it. ^_^ -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10577#issuecomment-2905872632 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 23 May 2025 21:39:19 UTC