Re: [csswg-drafts] [css-color][css-values] Parsing/Serialization behavior for rgb/hsl/hwb colors with calc() containing font/container/viewport relative lengths (#10730)

Also, from an implementation point of a view, it seems easier to serialize resolved math function values without `calc()` even when there are other channel values specified with unresolved math functions. 

For example, `rgb(calc(1), calc(1px / 1em), 0)` would serialize with `rgb(1 calc(1px / 1em) 0)`.

And there are also new numeric substitution functions that cannot be resolved at parse time, like `rgb(sibling-index() 0 0)` or `rgb(media-progress(width from 0px to 500px) 0 0)`, which I think are similar cases like relative length containing math functions, ie. they are unresolved numeric substitution functions.

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


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

Received on Wednesday, 25 September 2024 09:48:11 UTC