Skip to content

[css-fonts-4] Clarify range constraints on descriptor values in <font-feature-value-type>#13324

Merged
svgeesus merged 2 commits into
w3c:mainfrom
cdoublev:pr-13324
Apr 17, 2026
Merged

[css-fonts-4] Clarify range constraints on descriptor values in <font-feature-value-type>#13324
svgeesus merged 2 commits into
w3c:mainfrom
cdoublev:pr-13324

Conversation

@cdoublev
Copy link
Copy Markdown
Collaborator

Fixes #9926.

Descriptor values in <font-feature-value-type> rules are currently defined with:

Each declaration’s value must match the grammar <integer [0,∞]>+ [...]

https://drafts.csswg.org/css-fonts-4/#font-feature-values-syntax

As commented in the referenced issue, [0,∞] is not appropriate for all <feature-value-name>.

This PR makes use of <feature-index> but renamed to <font-feature-index>, which is similar to the suggestion to rename <family-name>, in order to avoid using generic production names for specific contexts.

Similarly, <feature-value-name> is also renamed to <font-feature-value-name>.

@cdoublev cdoublev added the css-fonts-4 Current Work label Jan 10, 2026
@fantasai fantasai requested a review from svgeesus April 14, 2026 21:31
@svgeesus svgeesus merged commit 4c2a00e into w3c:main Apr 17, 2026
1 check passed
@cdoublev cdoublev deleted the pr-13324 branch April 17, 2026 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

css-fonts-4 Current Work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[css-fonts-4] Missing restrictions of multi-valued feature values

2 participants