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

Update font-weight syntax for CSS Fonts 4 #234

Merged
merged 2 commits into from
May 30, 2018

Conversation

wbamberg
Copy link
Contributor

This updates the syntax of font-weight for the CSS Fonts Level 4 spec: https://drafts.csswg.org/css-fonts-4/#font-weight-prop

See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1436048

I've tested it using csssyntax.ejs on a local Kuma, and it did what I expected.

@@ -227,6 +227,9 @@
"font-variant-css21": {
"syntax": "[ normal | small-caps ]"
},
"font-weight-absolute": {
"syntax": "[normal | bold | <number>]"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't syntaxes already grouped or have I misunderstood something? I mean it doesn't have any multiplier or anything like that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you are right. I just copied it from the spec, but it looks like this is an instance of what @lahmatiy was talking about in #230.

Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@Elchi3 Elchi3 merged commit 70a6143 into mdn:master May 30, 2018
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.

3 participants