- From: CSS Meeting Bot via GitHub <noreply@w3.org>
- Date: Wed, 02 Jul 2025 17:03:28 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-backgrounds-4] Using logical keywords in background-position shorthand with multiple backgrounds`. <details><summary>The full IRC log of that discussion</summary> <emilio> fantasai: it gets tricky how to expand background properties that contain logical shorthands<br> <oriol> q+<br> <emilio> ... proposal is introducing a defer keyword which defer to the opposite's coordinate system value<br> <fantasai> s/contain/contain both/<br> <weinig> q+<br> <fantasai> s/both/both physical and/<br> <dbaron> q+<br> <emilio> ... so if I have `bg-position-x` and `bg-position-inline`, then `defer` gets ignored and the shorthand can expand into all properties<br> <Rossen3> ack oriol<br> <emilio> oriol: how this longhands work is quite unclear to me<br> <emilio> ... they're supposed to form a logical property group<br> <emilio> ... but there the pairing of logical and physical properties share a computed value<br> <emilio> ... does defer get resolved at computed value time?<br> <emilio> ... also grammars are similar<br> <emilio> q+<br> <emilio> weinig: can clarify that<br> <emilio> s/similar/different<br> <emilio> weinig: defer would not exist at computed value time, for the background the keywords never make it to the computed value time<br> <emilio> ... it's currently replacing what currently is the empty string<br> <emilio> ... so when you read the logical version at specified time it gives you the empty string<br> <emilio> ... which works fine when you don't have a list<br> <emilio> ... so it's just kinda replacing the empty string<br> <emilio> ... we could also use defer for non-list properties<br> <emilio> ... but I don't have a strong feeling either way<br> <SebastianZ> q+<br> <fantasai> +1 to using for all properties, not just lists<br> <emilio> ack weinig<br> <emilio> dbaron: if I'm understanding this correctly then implementing it requires doing additive cascade<br> <Rossen3> ack dbaron<br> <emilio> ... which has a lot of use cases<br> <emilio> ... and I think we should flesh it out<br> <bramus> +1<br> <emilio> weinig: what is additive cascade?<br> <emilio> dbaron: basically instead of overriding the pre-existing values, you add to your background list or counter-reset list<br> <emilio> fantasai: I don't think this is quite that<br> <emilio> ... it just lets you say that the value of this item in the list is taken from the value of a different property<br> <emilio> dbaron: right but to implement it you need to sort of search further back<br> <emilio> ... in this case there's sort of at most two declarations involved<br> <emilio> fantasai: and for different properties<br> <emilio> ... so you do the whole cascade and you end up with declared values for -x/-y/-block/-inline<br> <Rossen3> ?<br> <emilio> ... similar to margin longhands / shorthands<br> <Rossen3> q?<br> <fantasai> emilio: I think the model wasn't quite clear. I agree with Oriol that this feels odd. It's not quite the same as margins, for example<br> <fantasai> emilio: because there you map the property while you're doing the cascade<br> <fantasai> emilio: here the specified values ...<br> <fantasai> emilio: Not necessarily opposed, but it feels awkward<br> <fantasai> emilio: but don't have a suggestion<br> <fantasai> SebastianZ: My point was regarding when you setting 'defer' on the longhands, what should we do<br> <emilio> SebastianZ: what should we do when you set `defer` on the longhands?<br> <fantasai> SebastianZ: fantasai suggested 2 options, we need to decide on those.<br> <fantasai> weinig: If you do have a concern, providing a syntax example -- I tried to show in the issue, with each thing, put examples to help think it through<br> <fantasai> weinig: so be specific with your concerns<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12132#issuecomment-3028604840 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 2 July 2025 17:03:29 UTC