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

That final quote you mention isn't normative text, it's just the description of what the following algorithm is doing.

The answer to your question is that starting from a `min(1px, 2px)`, you get a calculation tree with a root node of "min" and children of "1px" and "2px". Following the simplification algorithm (section 11.10.1), step 4 ("If root is an operator node that's not one of the calc-operator nodes") triggers, simplifying the "min" node into the smaller of its arguments (because it can be fully simplified at this point).

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


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

Received on Tuesday, 9 November 2021 18:37:55 UTC