Re: [csswg-drafts] [css-backgrounds] What is the serialization "background-position: top right 10px"? (#6586)

The CSS Working Group just discussed `css-background-3`, and agreed to the following:

* `RESOLVED: Add a note`

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> Topic: css-background-3<br>
&lt;fantasai> github: https://github.com/w3c/csswg-drafts/issues/6586<br>
&lt;drott> chris: > @drott I see the PR on your fork repo but not the one on the csswg repo I'll turn it into a PR visible on the CSSWG repo.<br>
&lt;fantasai> smfr: Spec allows specifying a corner and an offset from that corner<br>
&lt;fantasai> smfr: spec doesn't specify<br>
&lt;fantasai> smfr: WebKit serializes as inputted<br>
&lt;fantasai> smfr: Gecko serializes calc()<br>
&lt;drott> fantasai: we already did discuss this - that's the way the serialized value is the way it is.<br>
&lt;drott> fantasai: you could possibly map the values of varying percentages to keywords.<br>
&lt;fantasai> s/serialized/computed/<br>
&lt;drott> fantasai: it's said that it's a length/percentag value per axis. there's no way to distinguish if somebody specified calc() of a value<br>
&lt;drott> fantasai: we had discussed this before: main concern would be: in the future we would have logical keywords<br>
&lt;drott> fantasai: with that, the computed value for background-position would become more complicated<br>
&lt;drott> fantasai: i don't have a strong opinion on it because of what we plan for in the future.<br>
&lt;fantasai> fantasai: spec is clear, in the "computed value" line<br>
&lt;emilio> I agree this falls from the "Computed Value" definition<br>
&lt;fantasai> TabAtkins: Since it confused some people, maybe a note to highlight that this information is lost would be helpful<br>
&lt;fantasai> smfr: I just wanted to follow link to where it's clear...<br>
&lt;fantasai> TabAtkins: as a combination of lengths and percentages, you'd have to use calc()<br>
&lt;fantasai> dbaron[m]: other principle is use most backwards-compatible syntax, and at least in Gecko calc() predated the background-position extended syntax<br>
&lt;fantasai> astearns: Suggest closing issue by adding a note to css-backgrounds-3 and maybe also values and units<br>
&lt;fantasai> smfr: wfm<br>
&lt;fantasai> RESOLVED: Add a note<br>
&lt;fantasai> astearns: no normative change, but we will explain why<br>
</details>


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


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

Received on Wednesday, 15 September 2021 16:54:31 UTC