Re: [css-houdini-drafts] [css-properties-values-api] Computed values for <color>

There's a problem here.

```background: currentcolor;```
will repaint when color changes from red to green; but

```background: paint(foo);
--background-color: currentcolor;
...
registerPaint(“foo”, …, [“--background-color”]);```
will not repaint when color changes, because currentcolor is 
computationally idempotent.

You could just add color to the list of sensitivities in 
registerPaint, but that seems like a bit of a hack given that 
currentcolor is valid all over the shop. Would it make sense to 
special-case currentcolor instead? This would require 
--background-color to be registered as a color property.

-- 
GitHub Notification of comment by shans
Please view or discuss this issue at 
https://github.com/w3c/css-houdini-drafts/issues/247#issuecomment-240570262
 using your GitHub account

Received on Wednesday, 17 August 2016 22:35:34 UTC