Skip to content

[css-viewport-1] number / percentage should be alternates, not optionals #12452

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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 frivoal and emilio July 6, 2025 18:02
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.

1 participant