Re: [csswg-drafts] [css-values-4] Specify simplification of min() and max() more explicitly (#4550)

Oh sorry, yeah, and specified-value time as well. The three normal value-distinction categories, and nothing fancier than that.

(Like, if we're talking *fancy*, something like `min(-10px, 1em)` is resolveable at specified-value time, because you know that the `em` value will resolve to a *non-negative* `px` value. But I don't want to specify that sort of constraint propagation, and I doubt that y'all want to implement it!)

In other words, the simplification rules should just be: if all of the arguments have been resolved to their maximum for the given context, and you can resolve the operation using just the values of the arguments, simplification should replace the function with its result. Otherwise it stays until a later value stage transforms arguments to their final form.

So in colors, %s don't resolve against anything, so a `min()` consisting of just them can and must be resolved immediately after parsing (the first simplification opportunity dictated by the spec).

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

Received on Friday, 28 February 2020 23:23:57 UTC