Re: [csswg-drafts] [css-values-4] What should non-calc() math functions serialize to when they're fully resolved? (#4399)

The CSS Working Group just discussed `serialization of non-calc() math functions`, and agreed to the following:

* `RESOLVED: Spec FF/WK behavior of eager simplification`

<details><summary>The full IRC log of that discussion</summary>
&lt;TabAtkins> Topic: serialization of non-calc() math functions<br>
&lt;TabAtkins> github: https://github.com/w3c/csswg-drafts/issues/4399#issuecomment-949067282<br>
&lt;fantasai> scribenick: fantasai<br>
&lt;fantasai> TabAtkins: should be a small clarification<br>
&lt;fantasai> TabAtkins: previous resolution didn't quite hit this<br>
&lt;fantasai> TabAtkins: issue is, when you have a unit that is not a canonical unit in a math function<br>
&lt;fantasai> TabAtkins: when precisely does it turn into the canonical unit?<br>
&lt;fantasai> TabAtkins: eg. when do you turn 1in into 96px?<br>
&lt;fantasai> TabAtkins: browsers all differ on this matter<br>
&lt;fantasai> TabAtkins: Safari and Firefox canonicalize eagerly<br>
&lt;fantasai> TabAtkins: Chrome only does this during the simplification process, sometimes.<br>
&lt;fantasai> TabAtkins: for specified styles it won't always fully simplify<br>
&lt;fantasai> TabAtkins: for computed values will sometimes simplify<br>
&lt;fantasai> TabAtkins: it's weird, calc(1in + 1in) becomes 2in<br>
&lt;fantasai> TabAtkins: but calc(1in + 10px) becomes 106px<br>
&lt;fantasai> TabAtkins: I think we should go with Firefox and Safari's behavior<br>
&lt;fantasai> TabAtkins: what Chrome is doing is complicated and unnecessary<br>
&lt;fantasai> TabAtkins: and two browsers are doing eager simplification already<br>
&lt;fantasai> Rossen_: any other opinions?<br>
&lt;fantasai> RESOLVED: Spec FF/WK behavior of eager simplification<br>
</details>


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


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

Received on Thursday, 2 December 2021 00:38:24 UTC