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

The CSS Working Group just discussed `[css-background-4] add background-layers property to set everything but background-color`, and agreed to the following:

* `RESOLVED: add shorthand for background-* minus background-color, name TBD`

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> SebastianZ: initial proposal was to create background-layers property that is separate from background-color but is otherwise same as 'background' shorhtand<br>
&lt;fantasai> -> summary comment https://github.com/w3c/csswg-drafts/issues/8726#issuecomment-1569020794<br>
&lt;fantasai> SebastianZ: The discussion went on and had different proposal to cover that use case<br>
&lt;fantasai> SebastianZ: 1st was new shorthand described above<br>
&lt;fantasai> SebastianZ: another that includes everything except images and color<br>
&lt;fantasai> SebastianZ: third was a ::background() pseudo-element<br>
&lt;SebastianZ> https://github.com/w3c/csswg-drafts/issues/8726#issuecomment-1569020794<br>
&lt;fantasai> SebastianZ: fourth was to add new keyword to skip overwriting the color<br>
&lt;fantasai> SebastianZ: and last was from Oriol to make no change, but teach authors to use background-color: revert-layer<br>
&lt;Rossen_> q?<br>
&lt;fantasai> SebastianZ: My personal opinion is to have something like the original proposal<br>
&lt;fantasai> SebastianZ: from my view it's the easiest way to achieve this as an author<br>
&lt;fantasai> SebastianZ: other suggestions have adantages as well<br>
&lt;fantasai> fantasai: agree with SebastianZ<br>
&lt;ntim> q+<br>
&lt;fantasai> fantasai: tackling list-editing cascade is a big project, worth doing, but unnecessary<br>
&lt;Rossen_> ack fantasai<br>
&lt;Rossen_> ack ntim<br>
&lt;fantasai> fantasai: just adding a shorthand is simple and solves the problem, biggest problem is naming the shorthand<br>
&lt;miriam> q+<br>
&lt;fantasai> ntim: Problem is you'll have 3 properties with similar syntax, hard to know the differences<br>
&lt;fantasai> ntim: you can do background: url, url, and then background-image: url, url; and then background-layers: url, url<br>
&lt;fantasai> miriam: I agree with SebastianZ and fantasai<br>
&lt;Rossen_> ack miriam<br>
&lt;fantasai> miriam: I mostly wanted to push against the 'revert-layer' option<br>
&lt;fantasai> miriam: teaching authors to use revert-layer is great! but it has specific cases where that's useful solution<br>
&lt;fantasai> miriam: but it requires adding new layers, and want to do that carefully<br>
&lt;fantasai> miriam: doesn't make sense as a universal solution to this problem<br>
&lt;fantasai> ??: I had a proposal to put positioning into shorthand without image, to avoid confusion of three properties that can take an image<br>
&lt;fantasai> s/??/ntim/<br>
&lt;fantasai> SebastianZ: that was my second option<br>
&lt;drott> fantasai: not a good idea, then you'd have to maintain two lists<br>
&lt;Rossen_> ack fantasai<br>
&lt;drott> fantasai: 1 for images, 1 for positioning<br>
&lt;drott> fantasai: sometimes there's use cases for splitting those things - but images and positioning are cascading together, so they should be declared together<br>
&lt;drott> fantasai: i'd advocate for original proposal, just need a shorthand name that makes sense<br>
&lt;fantasai> Rossen_: sounds like many folks leaning towards original proposal<br>
&lt;fantasai> Rossen_: would there be objections to resolve on the original proposal, and naming later?<br>
&lt;fantasai> RESOLVED: add shorthand for background-* minus background-color, name TBD<br>
</details>


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


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

Received on Wednesday, 28 June 2023 16:45:43 UTC