- From: Sam Weinig via GitHub <sysbot+gh@w3.org>
- Date: Tue, 11 Jun 2024 13:13:53 +0000
- To: public-css-archive@w3.org
weinig has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-color][css-values-and-units] Should calc(NaN) and calc(infinity) be serialized as part of the CSS colors == There are a few tests that require calc(NaN) and calc(infinity)/calc(-infinity) to be serialized as part of a color value. For instance in css/css-color/parsing/color-valid-color-function.html: ``` test_valid_value("color", `color(${colorSpace} 0 calc(infinity) 0)`, `color(${colorSpace} 0 calc(infinity) 0)`); ``` and ``` test_valid_value("color", `color(${colorSpace} calc(NaN) 0 0)`, `color(${colorSpace} calc(NaN) 0 0)`); ``` From my reading of https://drafts.csswg.org/css-values/#calc-ieee, it seems like NaN and infinity should never "escape" [top-level calculation](https://drafts.csswg.org/css-values/#top-level-calculation), and should be censored to 0. I am not entirely sure what "escape" means though, so I am not sure what is correct. @tabatkins @fantasai , can one of you shed light on this? Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10424 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 11 June 2024 13:13:54 UTC