Skip to content

Conversation

@keithamus
Copy link
Member

The viewport spec's zoom style value has the following grammar:

<number [0,∞]> || <percentage [0,∞]>

I'm sure this is not correct, this would allow for values such as zoom: 100% 0.5, zoom: 0.75 50%, and so on. AFAICT no browser supports such values and the spec does not describe what would happen if both values were supplied. I'm sure it is meant to be:

<number [0,∞]> | <percentage [0,∞]>

Which would mean either a number or a percentage, but not both. Please let me know if I'm wrong though.

@keithamus keithamus requested review from emilio and frivoal July 6, 2025 18:02
@emilio emilio merged commit db914f9 into w3c:main Jul 8, 2025
1 check passed
@keithamus keithamus deleted the css-viewport-1-number-percentage-should-be-alternates-not-optionls branch July 8, 2025 09:54
keithamus added a commit to csskit/csskit that referenced this pull request Jul 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants