Skip to content
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

fix(color-contrast): parse font-weight value as number (#2031) #2040

Merged
merged 1 commit into from
Feb 12, 2020

Conversation

takenspc
Copy link
Contributor

@takenspc takenspc commented Feb 12, 2020

The computed values of font-weight are numeric string so that we don't need to check keywords such as bold.

The font-weight values are continuous. They can be 123 or 123.4 so that we should parse them as number.

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide

<< Describe the changes >>

Closes issue: #2031

Reviewer checks

Required fields, to be filled out by PR reviewer(s)

  • Follows the commit message policy, appropriate for next version
  • Code is reviewed for security

The computed values of `font-weight` are numeric string so that we don't need to check keywords such as `bold`.

The `font-weight` values are continuous. They can be `123` or `123.4` so that we should parse them as number.

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
@takenspc takenspc requested a review from a team as a code owner February 12, 2020 03:01
@WilcoFiers
Copy link
Contributor

@tabushaban Thank you for the contribution!

@WilcoFiers WilcoFiers merged commit 72a5a82 into dequelabs:develop Feb 12, 2020
straker pushed a commit that referenced this pull request Feb 12, 2020
The computed values of `font-weight` are numeric string so that we don't need to check keywords such as `bold`.

The `font-weight` values are continuous. They can be `123` or `123.4` so that we should parse them as number.

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide

Co-authored-by: Takeshi Kurosawa <kurosawa-takeshi@mitsue.co.jp>
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.

None yet

3 participants