-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy pathcss-overflow-5.json
191 lines (191 loc) · 8.94 KB
/
css-overflow-5.json
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
{
"spec": {
"title": "CSS Overflow Module Level 5",
"url": "https://drafts.csswg.org/css-overflow-5/"
},
"properties": [
{
"name": "scroll-marker-group",
"href": "https://drafts.csswg.org/css-overflow-5/#propdef-scroll-marker-group",
"value": "none | before | after",
"initial": "none",
"appliesTo": "scroll containers",
"inherited": "no",
"percentages": "n/a",
"computedValue": "specified value",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "none",
"prose": "The scroll container does not create a '::scroll-marker-group' pseudo-element.",
"href": "https://drafts.csswg.org/css-overflow-5/#valdef-scroll-marker-group-none",
"type": "value",
"value": "none"
},
{
"name": "before",
"prose": "The scroll container generates a ::scroll-marker-group pseudo-element whose box is an immediate preceding sibling to its originating element.",
"href": "https://drafts.csswg.org/css-overflow-5/#valdef-scroll-marker-group-before",
"type": "value",
"value": "before"
},
{
"name": "after",
"prose": "The scroll container generates a ::scroll-marker-group pseudo-element whose box is an immediate following sibling to its originating element.",
"href": "https://drafts.csswg.org/css-overflow-5/#valdef-scroll-marker-group-after",
"type": "value",
"value": "after"
}
],
"styleDeclaration": [
"scroll-marker-group",
"scrollMarkerGroup"
]
},
{
"name": "continue",
"newValues": "overflow | paginate | fragments",
"initial": "auto",
"appliesTo": "block containers [CSS2], flex containers [CSS3-FLEXBOX], and grid containers [CSS3-GRID-LAYOUT]",
"inherited": "no",
"percentages": "N/A",
"computedValue": "see below",
"animationType": "discrete",
"values": [
{
"name": "overflow",
"prose": "Content that doesn’t fit overflows, according to the overflow property",
"href": "https://drafts.csswg.org/css-overflow-5/#valdef-continue-overflow",
"type": "value",
"value": "overflow"
},
{
"name": "paginate",
"prose": "Content that doesn’t fit paginates. This creates a paginated view inside the element similar to the way that 'overflow: scroll' creates a scrollable view. See paginated overflow",
"href": "https://drafts.csswg.org/css-overflow-5/#valdef-continue-paginate",
"type": "value",
"value": "paginate"
},
{
"name": "fragments",
"prose": "content that doesn’t fit causes the element to copy itself and continue laying out. See fragment overflow.",
"href": "https://drafts.csswg.org/css-overflow-5/#valdef-continue-fragments",
"type": "value",
"value": "fragments"
}
],
"styleDeclaration": [
"continue"
]
}
],
"atrules": [],
"selectors": [
{
"name": "::scroll-marker-group",
"prose": "The ::scroll-marker-group fully styleable pseudo-element is generated by a scroll container element having a computed scroll-marker-group property that is not none.",
"href": "https://drafts.csswg.org/css-overflow-5/#selectordef-scroll-marker-group"
},
{
"name": "::scroll-marker",
"prose": "When the computed content value of a ::scroll-marker pseudo-element is not none and its nearest ancestor scroll container scroll container has a computed scroll-marker-group property that is not none, the pseudo-element generates a box attached as a child of the ::scroll-marker-group pseudo-element’s generated box on its nearest ancestor scroll container. These boxes are added in the tree order of their originating element.",
"href": "https://drafts.csswg.org/css-overflow-5/#selectordef-scroll-marker"
},
{
"name": ":target-current",
"prose": "Exactly one scroll marker within each scroll marker group is determined to be active at a time. Such \"active\" scroll markers match the :target-current pseudo-class.",
"href": "https://drafts.csswg.org/css-overflow-5/#selectordef-target-current"
},
{
"name": "::scroll-button()",
"value": "::scroll-button( <scroll-button-direction> )",
"href": "https://drafts.csswg.org/css-overflow-5/#selectordef-scroll-button-scroll-button-direction"
},
{
"name": "::nth-fragment()",
"prose": "The ::nth-fragment() pseudo-element is a pseudo-element that describes some of the fragment boxes generated by an element. The argument to the pseudo-element takes the same syntax as the argument to the :nth-child() pseudo-class defined in [SELECT], and has the same meaning except that the number is relative to fragment boxes generated by the element instead of siblings of the element.",
"href": "https://drafts.csswg.org/css-overflow-5/#selectordef-nth-fragment"
}
],
"values": [
{
"name": "<scroll-button-direction>",
"prose": "The four ::scroll-button() pseudo-elements are individually selected by the selector’s argument. The possible <scroll-button-direction> values are:",
"href": "https://drafts.csswg.org/css-overflow-5/#typedef-scroll-button-direction",
"type": "type",
"values": [
{
"name": "up",
"prose": "Selects the ::scroll-button() corresponding to the given physical direction.",
"href": "https://drafts.csswg.org/css-overflow-5/#valdef-scroll-button-direction-up",
"type": "value",
"value": "up"
},
{
"name": "down",
"prose": "Selects the ::scroll-button() corresponding to the given physical direction.",
"href": "https://drafts.csswg.org/css-overflow-5/#valdef-scroll-button-direction-down",
"type": "value",
"value": "down"
},
{
"name": "left",
"prose": "Selects the ::scroll-button() corresponding to the given physical direction.",
"href": "https://drafts.csswg.org/css-overflow-5/#valdef-scroll-button-direction-left",
"type": "value",
"value": "left"
},
{
"name": "right",
"prose": "Selects the ::scroll-button() corresponding to the given physical direction.",
"href": "https://drafts.csswg.org/css-overflow-5/#valdef-scroll-button-direction-right",
"type": "value",
"value": "right"
},
{
"name": "block-start",
"prose": "Selects the indicated ::scroll-button() pseudo-element.",
"href": "https://drafts.csswg.org/css-overflow-5/#valdef-scroll-button-direction-block-start",
"type": "value",
"value": "block-start"
},
{
"name": "block-end",
"prose": "Selects the indicated ::scroll-button() pseudo-element.",
"href": "https://drafts.csswg.org/css-overflow-5/#valdef-scroll-button-direction-block-end",
"type": "value",
"value": "block-end"
},
{
"name": "inline-start",
"prose": "Selects the indicated ::scroll-button() pseudo-element.",
"href": "https://drafts.csswg.org/css-overflow-5/#valdef-scroll-button-direction-inline-start",
"type": "value",
"value": "inline-start"
},
{
"name": "inline-end",
"prose": "Selects the indicated ::scroll-button() pseudo-element.",
"href": "https://drafts.csswg.org/css-overflow-5/#valdef-scroll-button-direction-inline-end",
"type": "value",
"value": "inline-end"
},
{
"name": "prev",
"prose": "Selects either the block-start or inline-start ::scroll-button(), whichever’s axis has more \"scrollable pages\" in the originating element: the originating element’s scrollable overflow height divided by its scrollport height, or the same but for widths. If both dimensions are equally sized, selects the block-start ::scroll-button(). For example, say the originating element was 800px wide and 500px tall, while its scrollable overflow area was 1200px wide and 1000px tall. The horizontal scrolling thus represents 1.5 \"pages\" (1200/800), while the vertical scrolling represents 2 \"pages\" (1000/500), so (assuming the element is in English) the ::scroll-button(prev) selector would select the block-start button.",
"href": "https://drafts.csswg.org/css-overflow-5/#valdef-scroll-button-direction-prev",
"type": "value",
"value": "prev"
},
{
"name": "next",
"prose": "Identical to prev, except it selects the block-end or inline-end ::scroll-button() instead.",
"href": "https://drafts.csswg.org/css-overflow-5/#valdef-scroll-button-direction-next",
"type": "value",
"value": "next"
}
]
}
]
}