Re: [csswg-drafts] [css-backgrounds] background-clip: border-area (#9456)

> > Am I understanding this right? To get the `background-color` to show up as expected on an element with a `background-image` being used as a `border-area` we need to add an extra `background-image` with the value of `none` like this?:
> 
> @LeaVerou @smfr It looks like we need a mechanism to preserve bg-color without having to define multiple bg-images.

I don't think the cost-benefit of that is worth it, unless it provides additional value.

Keep in mind that when using the background shorthand the `none` doesn't even need to be specified:

```css
background: linear-gradient(...) border-area,
            yellow; /* background-clip: border-box is the initial value */
```

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


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

Received on Monday, 2 September 2024 09:24:47 UTC