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

Can I confirm if I understand the proposal correctly? Would the proposal introduce a new way to control backgrounds, that instead of overriding, would combine, blend or overlay backgrounds from different rules?

For example:
```css
.foo {
  background-layer: red;
}

.bar {
  background-layer: url("image.png") no-repeat right top;
}

.baz {
  background: url("image2.png");
}

Would be equivalent to computed CSS of
```css
background: red, url("image.png") no-repeat right top, url("image2.png");
```

If so, I feel like `background-layer` seems appropriate and matches up with the mental model of many design programs where fills can have several layers.

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


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

Received on Thursday, 25 May 2023 23:52:00 UTC