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

> @gavinmcfarland You are misunderstanding, this proposal is for a normal shorthand, not for additive cascade.
> 
> It would just allow writing
> 
> ```css
> background: url("image.png") no-repeat right top, url("image2.png") red;
> ```
> 
> as
> 
> ```css
> background-something: url("image.png") no-repeat right top, url("image2.png");
> background-color: red;
> ```

Thanks @Loirooriol for clarifying. So it is quite literally just another property that excludes `background-color`.

I'm not sure I'm in favour of this. I think it could introduce more confusion about the use of the existing `background` property works. It's changing the mental model of how background works by introducing the idea that `background` has a primary base which is a colour and then everything else on top, ie `background-something (if I've understood it correctly). I think it could undo lots of learning that people have worked towards understanding CSS only to find out there's an expectation or special property that they need to factor into their existing knowledge.

I like the intent of the proposal, just not sure if I agree with the suggested implementation.

-- 
GitHub Notification of comment by gavinmcfarland
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8726#issuecomment-1563664049 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:33:07 UTC