Skip to content

Commit 3ed3bdc

Browse files
feat: Add data for text-fit property (#1089)
1 parent 024ee94 commit 3ed3bdc

3 files changed

Lines changed: 23 additions & 0 deletions

File tree

css/properties.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11135,6 +11135,25 @@
1113511135
"status": "standard",
1113611136
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style"
1113711137
},
11138+
"text-fit": {
11139+
"syntax": "[ none | grow | shrink ] [consistent | per-line | per-line-all]? <percentage>?",
11140+
"media": "visual",
11141+
"inherited": true,
11142+
"animationType": "discrete",
11143+
"percentages": "no",
11144+
"groups": [
11145+
"CSS Text"
11146+
],
11147+
"initial": "none",
11148+
"appliesto": "blockContainerElements",
11149+
"computed": "specifiedKeywordOrComputedPercentage",
11150+
"order": "perGrammar",
11151+
"alsoAppliesTo": [
11152+
"::placeholder"
11153+
],
11154+
"status": "standard",
11155+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/text-fit"
11156+
},
1113811157
"text-indent": {
1113911158
"syntax": "<length-percentage> && hanging? && each-line?",
1114011159
"media": "visual",

css/properties.schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@
174174
"specifiedInteger",
175175
"specifiedIntegerOrAbsoluteLength",
176176
"specifiedKeywordOrComputedFunction",
177+
"specifiedKeywordOrComputedPercentage",
177178
"specifiedValue",
178179
"specifiedValueClipped0To1",
179180
"specifiedValueNumberClipped0To1",

l10n/css.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1921,6 +1921,9 @@
19211921
"en-US": "specified keyword, or computed function",
19221922
"fr": "mot-clé défini, ou fonction calculée"
19231923
},
1924+
"specifiedKeywordOrComputedPercentage": {
1925+
"en-US": "specified keyword, or computed <code>&lt;percentage&gt;</code>"
1926+
},
19241927
"specifiedValue": {
19251928
"en-US": "specified value",
19261929
"fr": "valeur définie"

0 commit comments

Comments
 (0)