Re: [csswg-drafts] [css-values] when should values inside `mix()` be clamped? (#8158)

Yes, it's (1) in this case: each of mix()'s arguments are clamped to allowed range of the context (non-negative). By "expression" I really mean "top-level calculation" and should use that term (and linkify it) instead.

> But an interp() function from https://github.com/w3c/csswg-drafts/issues/6697 that would basically be syntax sugar for calc() then would behave as (2).

Right, if we stayed purely within math functions the clamping wouldn't happen until the end.

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


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

Received on Thursday, 6 April 2023 19:22:45 UTC