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

@delan yeah, my point is that that doesn't match how browsers work _for the color property in particular_.

I was going to point how even Chrome doesn't think the computed value is `currentColor` for the color property, but its `computedStyleMap()` is broken:

```html
<span style="color: currentColor; background-color: currentColor"></span>
```

```js
document.querySelector("span").computedStyleMap().get("color").toString() // rgb(0, 0, 0)
document.querySelector("span").computedStyleMap().get("background-color").toString() // rgb(0, 0, 0)
```

Per spec, both should be `currentColor`. In Firefox and pretty sure WebKit, the former would be black.

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


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

Received on Wednesday, 22 June 2022 17:06:01 UTC