Re: [csswg-drafts] [css-values-4] Simplification algorithm should possibly return single child for min/max (#9559)

The CSS Working Group just discussed `[css-values-4] Simplification algorithm should possibly return single child for min/max`, and agreed to the following:

* `RESOLVED: Restore text simplifying out single-arg min/max functions`

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> scribe+<br>
&lt;fantasai> TabAtkins: Several years ago, we discussed simplifying calculation trees<br>
&lt;fantasai> TabAtkins: we agreed to aggressively simplify, e.g. min() if same units simplifies out<br>
&lt;fantasai> TabAtkins: as part of changes, I ended up removing the spec text about min() or max() with single argument<br>
&lt;fantasai> TabAtkins: I'm not sure why I dropped that spec text, I suspect it was an accident<br>
&lt;fantasai> TabAtkins: today all browsers do aggressively drop single-arg min()/max()<br>
&lt;fantasai> TabAtkins: e.g. min(5px) + 10px becomes 15px<br>
&lt;fantasai> TabAtkins: Chrome recently also aligned on this behavior<br>
&lt;dbaron> +1 to specifying what everyone does, seems like reasonable behavior.<br>
&lt;fantasai> TabAtkins: so I suggest we resolve on browser behavior, that single-arg min/max functions can be dropped from calc tree<br>
&lt;dbaron> (I think sakhapov recently wrote some reasonably major changes to calc() simplification in Chrome, to align with the spec.)<br>
&lt;fantasai> TabAtkins: even if the unit cannot yet be resolved<br>
&lt;fantasai> +1 from me<br>
&lt;fantasai> RESOLVED: Restore text simplifying out single-arg min/max functions<br>
</details>


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


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

Received on Wednesday, 22 November 2023 18:01:59 UTC