Re: [csswg-drafts] [css-pseudo] defaulting ‘color’ in :root highlights (#6774)

> > Blink doesn’t support any advanced color features yet, but I think in that case we would still set the flag, indicating that ‘color’ is _dependent_ on currentColor. Once we know what currentColor will be — for now, that means during paint — we call whichever function we normally call to resolve (and possibly mix) color values.
> 
> But that means that you need to preserve the unmixed color in the computed style, which is what you want to avoid to begin with right? Anyways I'm not opposed to that but seems a bit tricky off-hand.

As animations are not allowed on highlight pseudos probably the only thing special thing would be `color-mix`, that's not supported in Chromium yet so we didn't have to deal with that in the initial implementation.

I agree it's going to be more tricky than just storing a flag, but it's still something possible to implement.
Giving how highlights inheritance works, and that we need to do something special with `currentcolor` I believe we have to accept this complexity to move forward.


-- 
GitHub Notification of comment by mrego
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6774#issuecomment-1143468272 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 1 June 2022 11:12:28 UTC