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

Perhaps it's overkill, but could we draw inspiration from other CSS properties. Like `grid-template-areas` where you can name the areas and specify them in each individual rule?

For example:

```css
div {
  background-layers: "base"  "artwork";
}

.foo {
  background-layer: "base";
  background: red;
}

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

Which would compute to:

```css
background: red, url("image.png") no-repeat right top;
```

I feel like this could play nicely with existing conventions and understanding of the `background` property?

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


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

Received on Friday, 26 May 2023 00:15:42 UTC