Re: [csswg-drafts] [css-values-4][css-color-4] Resolve `<percentage>` to `<number>` as a color component in math functions (#8485)

Right, back-compatibility requires serializing `rgb()`, `hsl()`, `hwb()`, to legacy `rgb()`, thus to resolve percentages, even when they are wrapped in a math function (whereas the CSS Values requires to preserve it), into a number.

I ask why this should also apply in other color functions (and also in `scale` and whatever property defined with `<alpha-value>`), because:

  1. resolving a percentage to a number in a math function is relatively complex (and browsers do not always do it, eg. an angle percentage in a gradient function)
  2. if the author specified `100%` but `1` is serialized as a specified value, it is not the specified value anymore, for what reasons?

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


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

Received on Wednesday, 23 August 2023 14:30:45 UTC