Re: [csswg-drafts] [css-ui-3] caret-color animations, 'auto' and 'currentColor'

> No. Computed value of currentcolor is the keyword currentcolor. The 
text you referenced from CSS Color 4 also indicates this. It is only 
resolved at used-value time, not computed-value time. And this is 
necessary for color properties which are inherited by default 
(text-emphasis-color and -webkit-text-*-color).

Mmm, so let me ask a few questions.

In the browsers I've tested if you use `getComputedStyle()` of a color
 property that has been set to `currentcolor` they return for example 
`rgb(0,0,0)`. Is that the expected behavior? Or it's just a legacy 
thing that shouldn't be applied to new properties (like 
`caret-color`)?

Apart from that, reading your comment I understand that the following 
CSS won't be interpolable:
```css
  .foo {
    caret-color: auto;
    transition: caret-color 1s;
  }
  .foo:hover {
    caret-color: lime;
  }
```

But using `currentcolor` it'll be interpolable and you'll see a 
transition:
```css
  .foo {
    caret-color: currentcolor;
    transition: caret-color 1s;
  }
  .foo:hover {
    caret-color: lime;
  }
```

Is that the expected behavior for `caret-color`?

Thanks!

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

Received on Friday, 2 December 2016 08:26:22 UTC