Re: [csswg-drafts] [css-color-5] Clarification on how `channel keywords` with multiple specified types work (#7876)

This is an unfortunate breaking change for folks using pre-processors. It means that something like `lch(from indianred calc(l + 10%) c h)` isn't possible anymore. You have to write it as `lch(from indianred calc(l + .1) c h)` which seems less intuitive, especially since you can normally write the `l` channel as a percentage (e.g. `lch(63.9252% 51.2776 26.8448)`). Why can't we have it be a number or percentage depending on which one type checks? That's how I had implemented it in Lightning CSS - it first tries the calculation where `l` is a number, and if that fails, tries it as a percentage.

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


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

Received on Monday, 10 April 2023 14:47:33 UTC