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

My first thought was that `percentHint` should not be checked at all (when matching a standalone dimension type or `<number>`), but I was not sure of the consequences. 

I did not considered that the context should supply the ability to resolve percentages as a valid reason, because I thought `hsl(calc(var(--progress-as-percentage, 0%) / 100%) 100 50)` would be a valid use case, and it seemed inconsistent to allow `hsl(calc(1px / 1px) 100 50)` but not `hsl(calc(1% / 1%) 100 50)`.

-- 
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10017#issuecomment-1978346669 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 09:45:04 UTC