Re: [csswg-drafts] [css-background-4] add background-layers property to set everything but background-color (#8726)

Improving https://github.com/w3c/csswg-drafts/issues/8726#issuecomment-1569033374, now that #10443 added `revert-rule` and Blink is implementing it, it will be possible to just do

```css
div {
  background: cyan;
}
div#foo {
  background: url("image") 10px 10px / 20px 20px no-repeat fixed border-box content-box;
  background-color: revert-rule; /* Reverts to cyan */
}
```

No need to add layers nor expand into longhands manually to avoid overriding the color.

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


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

Received on Monday, 8 September 2025 19:56:27 UTC