Re: [csswg-drafts] [css-backgrounds-4] Using logical keywords in background-position shorthand with multiple backgrounds (#12132)

OK, so I think we don't actually need an internal logical flag like #9217, it's just a matter of adding omitted reference sides.

So `background-position-x: 0%` becomes `left 0%`, and `background-position-inline: 0%` becomes `start 0%`. This can happen at parse time.

Then, in a logical-physical pairing, a property can get a computed value not representable by its grammar, like `background-position-inline: left 0%`.
Typically this is okay since it will imply that `background-position-inline` is paired with `background-position-x`.
However, `background-position-inline: inherit` on an orthogonal element could become `left 0%` even if the inline axis is the vertical one. What to do, then?

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


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

Received on Saturday, 26 July 2025 20:51:59 UTC