Re: [csswg-drafts] [css-values] specification for calc() should be clearer about when the result has a percentage (#10017)

I think the presence of a percent hint should indicate that the context allows resolving percentages as that type.

So in `border-width: calc(log((10px + 20%) / 15px) * 3em)` it doesn't make sense for `10px + 20%` to have type «[ "length" → 1 ]» with a length percent hint. "add two types" should just return failure because `border-width` doesn't resolve percentages as lengths.

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


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

Received on Tuesday, 5 March 2024 16:18:00 UTC