Re: [csswg-drafts] [css-values-4] Should arguments to min/max get simplified when only partial simplification is possible? (#4756)

> I'd say no. It may seem fine now, but who knows, in the future we might have negative font sizes, making `1em` resolve to a negative length. So `10em` would be greater than `20em`, making this simplification invalid.

That seems unlikely, but anyhow we did already resolve in https://github.com/w3c/csswg-drafts/issues/4399#issuecomment-556160413 that we'd simplify these aggressively. I think simplifying only when the nodes are leafs and they have the same units (and they're not percentages, as percentages can be resolved with negative basis) seems like a nice boundary to me.

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

Received on Friday, 7 February 2020 14:50:42 UTC