[csswg-drafts] [css-fonts-4] Missing restrictions of multi-valued feature values (#9926)

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

== [css-fonts-4] Missing restrictions of multi-valued feature values ==
In [6.9.1. Basic syntax](https://drafts.csswg.org/css-fonts-4/#font-feature-values-syntax) (of `@font-feature-values`):

  > Each declaration’s value must match the grammar `<integer [0,∞]>+`, or else the declaration is invalid and must be ignored.

Then [6.9.2. Multi-valued feature value definitions](https://drafts.csswg.org/css-fonts-4/#multi-value-features) defines restrictions for declaration values, but only in `@character-variant`:

  > For `<@character-variant>`, [...]. If more than two values are assigned to a given name, a syntax error occurs and the entire feature value definition is ignored.

However, Chrome and FF also seem to restrict declaration values in `@annotation`, `@ornaments `, `@stylistic`, `@swash`, to a single `<integer>`. They do not seem to support `@historical-forms`.

Tests: [Codepen](https://codepen.io/creativewave/pen/oNVywwN?editors=0012) (please note that FF does not support `CSSFontFeatureValuesMap`).

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


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

Received on Thursday, 8 February 2024 13:59:22 UTC