-
Notifications
You must be signed in to change notification settings - Fork 127
Expand file tree
/
Copy pathcss-text-5.json
More file actions
78 lines (78 loc) · 3.32 KB
/
Copy pathcss-text-5.json
File metadata and controls
78 lines (78 loc) · 3.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"spec": {
"title": "CSS Text Module Level 5",
"url": "https://drafts.csswg.org/css-text-5/"
},
"properties": [
{
"name": "text-fit",
"href": "https://drafts.csswg.org/css-text-5/#propdef-text-fit",
"value": "[ none | grow | shrink ] [consistent | per-line | per-line-all]? <percentage>?",
"initial": "none",
"appliesTo": "block containers",
"inherited": "yes",
"percentages": "N/A",
"computedValue": "specified keywords or computed <percentage> value",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "none",
"prose": "The user agent doesn’t scale inline-level contents to fit to the line box.",
"href": "https://drafts.csswg.org/css-text-5/#valdef-text-fit-none",
"type": "value",
"value": "none"
},
{
"name": "grow",
"prose": "The user agent scales up inline-level contents to fit to the line box.",
"href": "https://drafts.csswg.org/css-text-5/#valdef-text-fit-grow",
"type": "value",
"value": "grow"
},
{
"name": "shrink",
"prose": "The user agent scales down inline-level contents to fit to the line box.",
"href": "https://drafts.csswg.org/css-text-5/#valdef-text-fit-shrink",
"type": "value",
"value": "shrink"
},
{
"name": "consistent",
"prose": "Specifies that all lines in the container are scaled with a single scaling factor. This keyword has no effect if none is specified. If none of consistent, per-line, or per-line-all are specified, consistent is assumed.",
"href": "https://drafts.csswg.org/css-text-5/#valdef-text-fit-consistent",
"type": "value",
"value": "consistent"
},
{
"name": "per-line",
"prose": "Specifies that each line is scaled with its own scaling factor. However, the last line of the block and lines that end in a forced break are not scaled. This keyword has no effect if none is specified.",
"href": "https://drafts.csswg.org/css-text-5/#valdef-text-fit-per-line",
"type": "value",
"value": "per-line"
},
{
"name": "per-line-all",
"prose": "Specifies that each line is scaled with its own scaling factor, including the last line of the block and lines that end in a forced break. This keyword has no effect if none is specified.",
"href": "https://drafts.csswg.org/css-text-5/#valdef-text-fit-per-line-all",
"type": "value",
"value": "per-line-all"
},
{
"name": "<percentage>",
"prose": "Specifies the limit of the scaling factor. If grow is specified and the value is 100% or greater, it is the maximum scaling factor. If shrink is specified and the value is between 0% and 100% inclusive, it is the minimum scaling factor. Otherwise, or if this component is omitted, there is no limit on the scaling factor.",
"href": "https://drafts.csswg.org/css-text-5/#valdef-text-fit-percentage",
"type": "value",
"value": "<percentage>"
}
],
"styleDeclaration": [
"text-fit",
"textFit"
]
}
],
"atrules": [],
"selectors": [],
"values": []
}