Skip to content

Commit

Permalink
feat: 28841 font synthesis position (#691)
Browse files Browse the repository at this point in the history
### 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](mdn/content#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](mdn/content#29108)
- [BCD PR](mdn/browser-compat-data#20688)
- [interactive-examples
PR](mdn/interactive-examples#2613)
  • Loading branch information
dletorey authored Sep 26, 2023
1 parent c0ad946 commit 5ced75f
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/node_modules/
.DS_Store
.DS_Store
69 changes: 45 additions & 24 deletions css/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -4804,7 +4804,7 @@
"line-height",
"font-family"
],
"appliesto": "allElements",
"appliesto": "allElementsAndText",
"computed": [
"font-style",
"font-variant",
Expand Down Expand Up @@ -4833,7 +4833,7 @@
"CSS Fonts"
],
"initial": "dependsOnUserAgent",
"appliesto": "allElements",
"appliesto": "allElementsAndText",
"computed": "asSpecified",
"order": "uniqueOrder",
"alsoAppliesTo": [
Expand All @@ -4854,7 +4854,7 @@
"CSS Fonts"
],
"initial": "normal",
"appliesto": "allElements",
"appliesto": "allElementsAndText",
"computed": "asSpecified",
"order": "uniqueOrder",
"alsoAppliesTo": [
Expand All @@ -4875,7 +4875,7 @@
"CSS Fonts"
],
"initial": "auto",
"appliesto": "allElements",
"appliesto": "allElementsAndText",
"computed": "asSpecified",
"order": "uniqueOrder",
"alsoAppliesTo": [
Expand All @@ -4896,7 +4896,7 @@
"CSS Fonts"
],
"initial": "normal",
"appliesto": "allElements",
"appliesto": "allElementsAndText",
"computed": "asSpecified",
"order": "uniqueOrder",
"alsoAppliesTo": [
Expand All @@ -4917,7 +4917,7 @@
"CSS Fonts"
],
"initial": "auto",
"appliesto": "allElements",
"appliesto": "allElementsAndText",
"computed": "asSpecified",
"order": "perGrammar",
"alsoAppliesTo": [
Expand Down Expand Up @@ -4979,7 +4979,7 @@
"CSS Fonts"
],
"initial": "medium",
"appliesto": "allElements",
"appliesto": "allElementsAndText",
"computed": "asSpecifiedRelativeToAbsoluteLengths",
"order": "uniqueOrder",
"alsoAppliesTo": [
Expand All @@ -5000,7 +5000,7 @@
"CSS Fonts"
],
"initial": "none",
"appliesto": "allElements",
"appliesto": "allElementsAndText",
"computed": "asSpecified",
"order": "uniqueOrder",
"alsoAppliesTo": [
Expand Down Expand Up @@ -5037,7 +5037,7 @@
"CSS Fonts"
],
"initial": "normal",
"appliesto": "allElements",
"appliesto": "allElementsAndText",
"computed": "asSpecified",
"order": "uniqueOrder",
"alsoAppliesTo": [
Expand All @@ -5058,7 +5058,7 @@
"CSS Fonts"
],
"initial": "normal",
"appliesto": "allElements",
"appliesto": "allElementsAndText",
"computed": "asSpecified",
"order": "uniqueOrder",
"alsoAppliesTo": [
Expand All @@ -5070,16 +5070,16 @@
"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",
"percentages": "no",
"groups": [
"CSS Fonts"
],
"initial": "weight style small-caps",
"appliesto": "allElements",
"initial": "weight style small-caps position ",
"appliesto": "allElementsAndText",
"computed": "asSpecified",
"order": "orderOfAppearance",
"alsoAppliesTo": [
Expand All @@ -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",
Expand All @@ -5100,7 +5121,7 @@
"CSS Fonts"
],
"initial": "auto",
"appliesto": "allElements",
"appliesto": "allElementsAndText",
"computed": "asSpecified",
"order": "orderOfAppearance",
"alsoAppliesTo": [
Expand All @@ -5121,7 +5142,7 @@
"CSS Fonts"
],
"initial": "auto",
"appliesto": "allElements",
"appliesto": "allElementsAndText",
"computed": "asSpecified",
"order": "orderOfAppearance",
"alsoAppliesTo": [
Expand All @@ -5142,7 +5163,7 @@
"CSS Fonts"
],
"initial": "auto",
"appliesto": "allElements",
"appliesto": "allElementsAndText",
"computed": "asSpecified",
"order": "orderOfAppearance",
"alsoAppliesTo": [
Expand All @@ -5163,7 +5184,7 @@
"CSS Fonts"
],
"initial": "normal",
"appliesto": "allElements",
"appliesto": "allElementsAndText",
"computed": "asSpecified",
"order": "uniqueOrder",
"alsoAppliesTo": [
Expand All @@ -5184,7 +5205,7 @@
"CSS Fonts"
],
"initial": "normal",
"appliesto": "allElements",
"appliesto": "allElementsAndText",
"computed": "asSpecified",
"order": "orderOfAppearance",
"alsoAppliesTo": [
Expand All @@ -5205,7 +5226,7 @@
"CSS Fonts"
],
"initial": "normal",
"appliesto": "allElements",
"appliesto": "allElementsAndText",
"computed": "asSpecified",
"order": "uniqueOrder",
"alsoAppliesTo": [
Expand All @@ -5226,7 +5247,7 @@
"CSS Fonts"
],
"initial": "normal",
"appliesto": "allElements",
"appliesto": "allElementsAndText",
"computed": "asSpecified",
"order": "orderOfAppearance",
"alsoAppliesTo": [
Expand Down Expand Up @@ -5267,7 +5288,7 @@
"CSS Fonts"
],
"initial": "normal",
"appliesto": "allElements",
"appliesto": "allElementsAndText",
"computed": "asSpecified",
"order": "orderOfAppearance",
"alsoAppliesTo": [
Expand All @@ -5288,7 +5309,7 @@
"CSS Fonts"
],
"initial": "normal",
"appliesto": "allElements",
"appliesto": "allElementsAndText",
"computed": "asSpecified",
"order": "orderOfAppearance",
"alsoAppliesTo": [
Expand All @@ -5309,7 +5330,7 @@
"CSS Fonts"
],
"initial": "normal",
"appliesto": "allElements",
"appliesto": "allElementsAndText",
"computed": "asSpecified",
"order": "uniqueOrder",
"alsoAppliesTo": [
Expand All @@ -5330,7 +5351,7 @@
"CSS Fonts"
],
"initial": "normal",
"appliesto": "allElements",
"appliesto": "allElementsAndText",
"computed": "keywordOrNumericalValueBolderLighterTransformedToRealValue",
"order": "uniqueOrder",
"alsoAppliesTo": [
Expand Down

0 comments on commit 5ced75f

Please sign in to comment.