Skip to content

Restrict font-weight-absolute values to numbers in the 1...1000 range - #420

Merged
chrisdavidmills merged 1 commit into
mdn:masterfrom
papandreou:fix/limitFontWeightRange
Jul 21, 2020
Merged

Restrict font-weight-absolute values to numbers in the 1...1000 range#420
chrisdavidmills merged 1 commit into
mdn:masterfrom
papandreou:fix/limitFontWeightRange

Conversation

@papandreou

@papandreou papandreou commented Jul 21, 2020

Copy link
Copy Markdown
Contributor

My fuzz testing tool generates crazy numerical font-weight values because the range isn't restricted by the grammar.

I suggest limiting it to 1...1000 as per the extra notes in the CSS Fonts Module Level 4 Working Draft. I'm proposing the equivalent change to the spec here: w3c/csswg-drafts#5345

@chrisdavidmills

Copy link
Copy Markdown
Contributor

@papandreou this makes sense to me, but I'd rather wait until the change is accepted into the spec before we make the change here. Ping me when it gets accepted.

@papandreou

Copy link
Copy Markdown
Contributor Author

@chrisdavidmills, ping! The spec PR got merged now 🤗

@chrisdavidmills
chrisdavidmills merged commit 9524ff7 into mdn:master Jul 21, 2020
@chrisdavidmills

Copy link
Copy Markdown
Contributor

that was quick ;-)

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