From 609016124510dc1d91b50793cfc573954382118f Mon Sep 17 00:00:00 2001 From: Will Bamberg Date: Fri, 25 May 2018 12:41:03 -0700 Subject: [PATCH 1/2] Update @font-face for CSS Fonts Level 4 --- css/at-rules.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css/at-rules.json b/css/at-rules.json index 475c8ed6..540e8805 100644 --- a/css/at-rules.json +++ b/css/at-rules.json @@ -120,7 +120,7 @@ "status": "nonstandard" }, "@font-face": { - "syntax": "@font-face {\n [ font-family: ; ] ||\n [ src: ; ] ||\n [ unicode-range: ; ] ||\n [ font-variant: ; ] ||\n [ font-feature-settings: ; ] ||\n [ font-variation-settings: ; ] ||\n [ font-stretch: ; ] ||\n [ font-weight: ; ] ||\n [ font-style: ; ]\n}", + "syntax": "@font-face {\n [ font-family: ; ] ||\n [ src: ; ] ||\n [ unicode-range: ; ] ||\n [ font-variant: ; ] ||\n [ font-feature-settings: ; ] ||\n [ font-variation-settings: ; ] ||\n [ font-stretch: ?; ] ||\n [ font-weight: ?; ] ||\n [ font-style: normal | italic | oblique [ | ] ?; ]\n}", "interfaces": [ "CSSFontFaceRule" ], From 8fe14b05ee9b4b2b734cff1b05982a14b8b20451 Mon Sep 17 00:00:00 2001 From: Will Bamberg Date: Tue, 29 May 2018 16:12:50 -0700 Subject: [PATCH 2/2] Update after review --- css/at-rules.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/css/at-rules.json b/css/at-rules.json index 540e8805..a4398f95 100644 --- a/css/at-rules.json +++ b/css/at-rules.json @@ -120,7 +120,7 @@ "status": "nonstandard" }, "@font-face": { - "syntax": "@font-face {\n [ font-family: ; ] ||\n [ src: ; ] ||\n [ unicode-range: ; ] ||\n [ font-variant: ; ] ||\n [ font-feature-settings: ; ] ||\n [ font-variation-settings: ; ] ||\n [ font-stretch: ?; ] ||\n [ font-weight: ?; ] ||\n [ font-style: normal | italic | oblique [ | ] ?; ]\n}", + "syntax": "@font-face {\n [ font-family: ; ] ||\n [ src: ; ] ||\n [ unicode-range: ; ] ||\n [ font-variant: ; ] ||\n [ font-feature-settings: ; ] ||\n [ font-variation-settings: ; ] ||\n [ font-stretch: ; ] ||\n [ font-weight: ; ] ||\n [ font-style: ; ]\n}", "interfaces": [ "CSSFontFaceRule" ], @@ -165,7 +165,7 @@ "status": "standard" }, "font-stretch": { - "syntax": "normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded", + "syntax": "{1,2}", "media": "all", "initial": "normal", "percentages": "no", @@ -174,7 +174,7 @@ "status": "standard" }, "font-style": { - "syntax": "normal | italic | oblique", + "syntax": "normal | italic | oblique {0,2}", "media": "all", "initial": "normal", "percentages": "no", @@ -183,7 +183,7 @@ "status": "standard" }, "font-weight": { - "syntax": "normal | bold | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900", + "syntax": "{1,2}", "media": "all", "initial": "normal", "percentages": "no",