Re: [csswg-drafts] [cssom-1][css-values-4][css-cascade-5] When should calc() be maintained in specified value serialization? (#8290)

Yeah, the [simplification](https://drafts.csswg.org/css-values/#calc-simplification) and [serialization](https://drafts.csswg.org/css-values/#calc-serialize) algorithms define how this works. The basic answer is "simplify as much as you can at each stage (specified, computed, used) and then serialize what you've got", with the caveat that if the tree simplifies down to a plain numeric value it's serialized with a calc() around it if it's a specified value (to maintain clamping behavior).

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


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

Received on Monday, 9 January 2023 19:59:51 UTC