Re: [csswg-drafts] [css-color-5] Add `currentBackgroundColor` Variable (#5292)

Usecase example:

This is possible:
```
a {
  color: red;
  :focus {
      color: color-mix(in srgb, currentcolor 97%, white);
  }
}
```

Because **"inherit"** is not allowed in color-mix() and there is no **currentBackgroundColor**, this is still not possible:
```
a {
  background-color: rebeccapurple;
  :focus {
      color: color-mix(in srgb, currentBackgroundColor 97%, white);
  }
}
```

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


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

Received on Friday, 20 December 2024 07:41:39 UTC