- From: Guillaume via GitHub <sysbot+gh@w3.org>
- Date: Mon, 04 Dec 2023 17:06:30 +0000
- To: public-css-archive@w3.org
cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts:
== [css-values-4] Simplify a calculation tree with color function keywords ==
Follow-up on https://github.com/w3c/csswg-drafts/issues/9464#issuecomment-1776685642 about minor oversights in CSS Values 4.
CSS Colors 5 now says:
> For example, the result of serializing the specified value `OkLcH(from peru l c h)` is the string `oklch(from peru l c h)`.
https://drafts.csswg.org/css-color-5/#serial-relative-color
So I expect the result of serializing the specified value `oklch(from peru calc(l) c h)` to be the same string and I think CSS Values 4 requires some adjustments:
```diff
To determine the type of a calculation:
- [...]
- - <calc-constant>: the type is «[ ]» (empty map)
+ - <calc-keyword>: the type defined for the keyword in the corresponding specification
```
```diff
To simplify a calculation tree root:
1. If root is a numeric value: [...]
1. [...]
2. [...]
- 3. If root is a `<calc-constant>`, return its numeric value.
+ 3. If root is a `<calc-keyword>` representing a numeric constant value, return its value.
```
Step 8 and 9 (simplification of a sum and a product) look for *numeric values* to resolve. Maybe *numeric values* should be replaced with *literal numeric values*, which should be clarified (a numeric value that is not `<calc-keyword>`) in a note?
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9673 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 4 December 2023 17:06:33 UTC