Re: [csswg-drafts] [css-colors-5] Serialization of a relative color functions as component of specified values (#9464)

  > Simplification is already well-defined - a keyword, once it has the information necessary to resolve, is handled by step 2.1

Does `from currentcolor calc(r + 1 + 1) 0 0` should be simplified to `from currentcolor calc(r + 2) 0 0`?

  > the channel keywords resolve at the same time as the source color does, so `from red, r g b` resolves them all immediately but `from currentcolor r g b` waits until currentcolor is resolveable

Does this mean that it must resolve at parse time (except `currentcolor`) or at the same time as a if the source color was an absolute color?

  > For example, relative color syntax defines a number of color-channel keywords representing the value of each color channel as a `<number>`.

`rgb(from green calc(r + 1%) 0 0)` or `rgb(from green calc(r * 1%) 0 0)` must be invalid, right?

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


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

Received on Tuesday, 24 October 2023 07:40:47 UTC