- From: Delan Azabani via GitHub <sysbot+gh@w3.org>
- Date: Wed, 22 Jun 2022 16:52:31 +0000
- To: public-css-archive@w3.org
@emilio @fantasai re currentColor disappearing at computed value time, [css-color-4 #resolving-other-colors](https://drafts.csswg.org/css-color-4/#resolving-other-colors) says
> The [currentcolor](https://drafts.csswg.org/css-color-4/#valdef-color-currentcolor) keyword computes to itself.
which is why this rect is green, not red ([demo](https://bucket.daz.cat/work/igalia/0/36.svg))
```svg
<svg viewBox="0 0 300 150" xmlns="http://www.w3.org/2000/svg">
<g><rect x="10" y="10" width="10" height="10" /></g>
<style>
g { color: red; fill: currentColor; }
rect { color: green; fill: inherit; }
</style>
</svg>
```
--
GitHub Notification of comment by delan
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6774#issuecomment-1163377167 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 16:52:35 UTC