forked from csstree/csstree
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
In #80 we added some types to patch.json
to cover relative color syntax. However, these changes don't use the specification terms, making it incomplete and difficult to maintain going forward.
First, we need to make sure we account for relative colors in all the functions that support it:
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_colors/Relative_colors#color_functions_that_support_relative_colors
Second, we need to be sure we're using the syntax definitions from the specification:
- RGB: https://drafts.csswg.org/css-color-5/#relative-RGB
- HSL: https://drafts.csswg.org/css-color-5/#relative-HSL
- HWB: https://drafts.csswg.org/css-color-5/#relative-HWB
- Lab: https://drafts.csswg.org/css-color-5/#relative-Lab
- Oklab: https://drafts.csswg.org/css-color-5/#relative-Oklab
- LCH: https://drafts.csswg.org/css-color-5/#relative-LCH
- OkLCH: https://drafts.csswg.org/css-color-5/#relative-OkLCh
- Alpha: https://drafts.csswg.org/css-color-5/#relative-alpha
Third, we need to double-check that we're starting with the mdn-data
syntax first, and then building from there.
SwetaTanwar