From 5ced75feb9c1c7096c3ce7b2844fa29104d5f3cb Mon Sep 17 00:00:00 2001 From: Dave Letorey Date: Wed, 27 Sep 2023 00:45:21 +0100 Subject: [PATCH] feat: 28841 font synthesis position (#691) ### Description - Added the `font-synthesis-position` property - Updated the `font-synthesis` shorthand property to include the `position` value ### Motivation Working on the documentation for [[CSS] Add font-synthesis-position property](https://github.com/mdn/content/issues/28841) ### Additional details [https://drafts.csswg.org/css-fonts-4/#font-synthesis-position](https://drafts.csswg.org/css-fonts-4/#font-synthesis-position) ### Related issues and pull requests - [Bugzilla](https://bugzilla.mozilla.org/show_bug.cgi?id=1849010) - [Content PR](https://github.com/mdn/content/pull/29108) - [BCD PR](https://github.com/mdn/browser-compat-data/pull/20688) - [interactive-examples PR](https://github.com/mdn/interactive-examples/pull/2613) --- .gitignore | 2 +- css/properties.json | 69 +++++++++++++++++++++++++++++---------------- 2 files changed, 46 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index d004a9ae..99f211df 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ /node_modules/ -.DS_Store \ No newline at end of file +.DS_Store diff --git a/css/properties.json b/css/properties.json index 931253e4..0b63bc2e 100644 --- a/css/properties.json +++ b/css/properties.json @@ -4804,7 +4804,7 @@ "line-height", "font-family" ], - "appliesto": "allElements", + "appliesto": "allElementsAndText", "computed": [ "font-style", "font-variant", @@ -4833,7 +4833,7 @@ "CSS Fonts" ], "initial": "dependsOnUserAgent", - "appliesto": "allElements", + "appliesto": "allElementsAndText", "computed": "asSpecified", "order": "uniqueOrder", "alsoAppliesTo": [ @@ -4854,7 +4854,7 @@ "CSS Fonts" ], "initial": "normal", - "appliesto": "allElements", + "appliesto": "allElementsAndText", "computed": "asSpecified", "order": "uniqueOrder", "alsoAppliesTo": [ @@ -4875,7 +4875,7 @@ "CSS Fonts" ], "initial": "auto", - "appliesto": "allElements", + "appliesto": "allElementsAndText", "computed": "asSpecified", "order": "uniqueOrder", "alsoAppliesTo": [ @@ -4896,7 +4896,7 @@ "CSS Fonts" ], "initial": "normal", - "appliesto": "allElements", + "appliesto": "allElementsAndText", "computed": "asSpecified", "order": "uniqueOrder", "alsoAppliesTo": [ @@ -4917,7 +4917,7 @@ "CSS Fonts" ], "initial": "auto", - "appliesto": "allElements", + "appliesto": "allElementsAndText", "computed": "asSpecified", "order": "perGrammar", "alsoAppliesTo": [ @@ -4979,7 +4979,7 @@ "CSS Fonts" ], "initial": "medium", - "appliesto": "allElements", + "appliesto": "allElementsAndText", "computed": "asSpecifiedRelativeToAbsoluteLengths", "order": "uniqueOrder", "alsoAppliesTo": [ @@ -5000,7 +5000,7 @@ "CSS Fonts" ], "initial": "none", - "appliesto": "allElements", + "appliesto": "allElementsAndText", "computed": "asSpecified", "order": "uniqueOrder", "alsoAppliesTo": [ @@ -5037,7 +5037,7 @@ "CSS Fonts" ], "initial": "normal", - "appliesto": "allElements", + "appliesto": "allElementsAndText", "computed": "asSpecified", "order": "uniqueOrder", "alsoAppliesTo": [ @@ -5058,7 +5058,7 @@ "CSS Fonts" ], "initial": "normal", - "appliesto": "allElements", + "appliesto": "allElementsAndText", "computed": "asSpecified", "order": "uniqueOrder", "alsoAppliesTo": [ @@ -5070,7 +5070,7 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/font-style" }, "font-synthesis": { - "syntax": "none | [ weight || style || small-caps ]", + "syntax": "none | [ weight || style || small-caps || position]", "media": "visual", "inherited": true, "animationType": "discrete", @@ -5078,8 +5078,8 @@ "groups": [ "CSS Fonts" ], - "initial": "weight style small-caps", - "appliesto": "allElements", + "initial": "weight style small-caps position ", + "appliesto": "allElementsAndText", "computed": "asSpecified", "order": "orderOfAppearance", "alsoAppliesTo": [ @@ -5090,6 +5090,27 @@ "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/font-synthesis" }, + "font-synthesis-position": { + "syntax": "auto | none", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "CSS Fonts" + ], + "initial": "none", + "appliesto": "allElementsAndText", + "computed": "asSpecified", + "order": "orderOfAppearance", + "alsoAppliesTo": [ + "::first-letter", + "::first-line", + "::placeholder" + ], + "status": "experimental", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/font-synthesis-position" + }, "font-synthesis-small-caps": { "syntax": "auto | none", "media": "visual", @@ -5100,7 +5121,7 @@ "CSS Fonts" ], "initial": "auto", - "appliesto": "allElements", + "appliesto": "allElementsAndText", "computed": "asSpecified", "order": "orderOfAppearance", "alsoAppliesTo": [ @@ -5121,7 +5142,7 @@ "CSS Fonts" ], "initial": "auto", - "appliesto": "allElements", + "appliesto": "allElementsAndText", "computed": "asSpecified", "order": "orderOfAppearance", "alsoAppliesTo": [ @@ -5142,7 +5163,7 @@ "CSS Fonts" ], "initial": "auto", - "appliesto": "allElements", + "appliesto": "allElementsAndText", "computed": "asSpecified", "order": "orderOfAppearance", "alsoAppliesTo": [ @@ -5163,7 +5184,7 @@ "CSS Fonts" ], "initial": "normal", - "appliesto": "allElements", + "appliesto": "allElementsAndText", "computed": "asSpecified", "order": "uniqueOrder", "alsoAppliesTo": [ @@ -5184,7 +5205,7 @@ "CSS Fonts" ], "initial": "normal", - "appliesto": "allElements", + "appliesto": "allElementsAndText", "computed": "asSpecified", "order": "orderOfAppearance", "alsoAppliesTo": [ @@ -5205,7 +5226,7 @@ "CSS Fonts" ], "initial": "normal", - "appliesto": "allElements", + "appliesto": "allElementsAndText", "computed": "asSpecified", "order": "uniqueOrder", "alsoAppliesTo": [ @@ -5226,7 +5247,7 @@ "CSS Fonts" ], "initial": "normal", - "appliesto": "allElements", + "appliesto": "allElementsAndText", "computed": "asSpecified", "order": "orderOfAppearance", "alsoAppliesTo": [ @@ -5267,7 +5288,7 @@ "CSS Fonts" ], "initial": "normal", - "appliesto": "allElements", + "appliesto": "allElementsAndText", "computed": "asSpecified", "order": "orderOfAppearance", "alsoAppliesTo": [ @@ -5288,7 +5309,7 @@ "CSS Fonts" ], "initial": "normal", - "appliesto": "allElements", + "appliesto": "allElementsAndText", "computed": "asSpecified", "order": "orderOfAppearance", "alsoAppliesTo": [ @@ -5309,7 +5330,7 @@ "CSS Fonts" ], "initial": "normal", - "appliesto": "allElements", + "appliesto": "allElementsAndText", "computed": "asSpecified", "order": "uniqueOrder", "alsoAppliesTo": [ @@ -5330,7 +5351,7 @@ "CSS Fonts" ], "initial": "normal", - "appliesto": "allElements", + "appliesto": "allElementsAndText", "computed": "keywordOrNumericalValueBolderLighterTransformedToRealValue", "order": "uniqueOrder", "alsoAppliesTo": [