[csswg-drafts] [cssom-1] Serialization of feature values (#11041)

cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts:

== [cssom-1] Serialization of feature values ==
[*Serializing Media Feature Values*](https://drafts.csswg.org/cssom-1/#serializing-media-feature-values) is poorly defined.

This is not really important but hey, it could simply be replaced with [serializing a CSS value](https://drafts.csswg.org/cssom-1/#serialize-a-css-value): keywords in lowercase, base 10 numbers, etc.

In current version of Chrome and FF:

| Input                   | Chrome                  | FF                      | Expected                |
| ----------------------- | ----------------------- | ----------------------- | ----------------------- |
| `orientation: PORTRAIT` | `orientation: portrait` | `orientation: portrait` | `orientation: portrait` |
| `aspect-ratio: 1`       | `aspect-ratio: 1 / 1`   | `aspect-ratio: 1 / 1`   | `aspect-ratio: 1 / 1`   |
| `width: 0`              | `width: 0`              | `width: 0px`            | `width: 0px`            |
| `width: 1in`            | `width: 1in`            | `width: 1in`            | `width: 96px`           |
| `width: calc(1px * 2)`  | `width: calc(2px)`      | `width: calc(2px)`      | `width: calc(2px)`      |
| `color: 1.0`            | `color: 1.0`            | `color: 1.0`            | `color: 1`              |
| `color: 1e1`            | `color: 1e1`            | `color: 1e1`            | `color: 10`             |

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11041 using your GitHub account


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

Received on Wednesday, 16 October 2024 11:40:40 UTC