[csswg-drafts] [css-counter-styles] How should relative-length values be interpreted when used in @counter-style descriptors? (#10877)

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

== [css-counter-styles] How should relative-length values be interpreted when used in @counter-style descriptors? ==
How should relative-length values be interpreted when used in @counter-style descriptors?

The grammars for @counter-style descriptors, for example, ['range'](https://drafts.csswg.org/css-counter-styles/#descdef-counter-style-range), allow the use of relative-length values due to the fact that `calc()` allows for them. 

For example, using 'range' again:

```css

@counter-style a {
  range: infinite calc(3 * sign(10em - 2px));
}
```

So the question is, what does 10em evaluate to? @font-palette-values contains this text:

> [Math functions](https://www.w3.org/TR/css-values-4/#math-function), such as [calc()](https://www.w3.org/TR/css-values-4/#funcdef-calc), and also [var()](https://www.w3.org/TR/css-variables-1/#funcdef-var), and [env()](https://drafts.csswg.org/css-env-1/#funcdef-env), are valid within descriptor values in a [@font-palette-values](https://www.w3.org/TR/css-fonts-4/#at-ruledef-font-palette-values) rule. They are evaluated within the context of the root element. Relative units are also evaluated within the context of the root element.

but I can't find any similar text for @counter-style.

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


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

Received on Thursday, 12 September 2024 15:43:04 UTC