-
Notifications
You must be signed in to change notification settings - Fork 78
/
css-overflow.json
379 lines (379 loc) · 19 KB
/
css-overflow.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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
{
"spec": {
"title": "CSS Overflow Module Level 3",
"url": "https://drafts.csswg.org/css-overflow-3/"
},
"properties": [
{
"name": "overflow-x",
"href": "https://drafts.csswg.org/css-overflow-3/#propdef-overflow-x",
"value": "visible | hidden | clip | scroll | auto",
"initial": "visible",
"appliesTo": "block containers [CSS2], flex containers [CSS3-FLEXBOX], grid containers [CSS3-GRID-LAYOUT]",
"inherited": "no",
"percentages": "N/A",
"computedValue": "usually specified value, but see text",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"logicalPropertyGroup": "overflow",
"values": [
{
"name": "visible",
"prose": "There is no special handling of overflow, that is, the box’s content is rendered outside the box if positioned there. The box is not a scroll container.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-overflow-visible",
"type": "value",
"value": "visible"
},
{
"name": "hidden",
"prose": "This value indicates that the box’s content is clipped to its padding box and that the UA must not provide any scrolling user interface to view the content outside the clipping region, nor allow scrolling by direct intervention of the user, such as dragging on a touch screen or using the scrolling wheel on a mouse. However, the content must still be scrollable programmatically, for example using the mechanisms defined in [CSSOM-VIEW], and the box is therefore still a scroll container.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-overflow-hidden",
"type": "value",
"value": "hidden"
},
{
"name": "clip",
"prose": "This value indicates that the box’s content is clipped to its overflow clip edge and that no scrolling user interface should be provided by the UA to view the content outside the clipping region. In addition, unlike overflow: hidden which still allows programmatic scrolling, overflow: clip forbids scrolling entirely, through any mechanism, and therefore the box is not a scroll container. Unlike hidden, this value does not cause the element to establish a new formatting context.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-overflow-clip",
"type": "value",
"value": "clip"
},
{
"name": "scroll",
"prose": "This value indicates that the content is clipped to the padding box, but can be scrolled into view (and therefore the box is a scroll container). Furthermore, if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed whether or not any of its content is clipped. This avoids any problem with scrollbars appearing and disappearing in a dynamic environment. When the target medium is print, overflowing content may be printed; it is not defined where it may be printed.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-overflow-scroll",
"type": "value",
"value": "scroll"
},
{
"name": "auto",
"prose": "Like scroll when the box has scrollable overflow; like hidden otherwise. Thus, if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism will only be displayed if there is overflow.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-overflow-auto",
"type": "value",
"value": "auto"
},
{
"name": "overlay",
"prose": "User agents must also support the overlay keyword as a legacy value alias of auto.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-overflow-overlay",
"type": "value",
"value": "overlay"
}
],
"styleDeclaration": [
"overflow-x",
"overflowX"
]
},
{
"name": "overflow-y",
"href": "https://drafts.csswg.org/css-overflow-3/#propdef-overflow-y",
"value": "visible | hidden | clip | scroll | auto",
"initial": "visible",
"appliesTo": "block containers [CSS2], flex containers [CSS3-FLEXBOX], grid containers [CSS3-GRID-LAYOUT]",
"inherited": "no",
"percentages": "N/A",
"computedValue": "usually specified value, but see text",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"logicalPropertyGroup": "overflow",
"values": [
{
"name": "visible",
"prose": "There is no special handling of overflow, that is, the box’s content is rendered outside the box if positioned there. The box is not a scroll container.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-overflow-visible",
"type": "value",
"value": "visible"
},
{
"name": "hidden",
"prose": "This value indicates that the box’s content is clipped to its padding box and that the UA must not provide any scrolling user interface to view the content outside the clipping region, nor allow scrolling by direct intervention of the user, such as dragging on a touch screen or using the scrolling wheel on a mouse. However, the content must still be scrollable programmatically, for example using the mechanisms defined in [CSSOM-VIEW], and the box is therefore still a scroll container.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-overflow-hidden",
"type": "value",
"value": "hidden"
},
{
"name": "clip",
"prose": "This value indicates that the box’s content is clipped to its overflow clip edge and that no scrolling user interface should be provided by the UA to view the content outside the clipping region. In addition, unlike overflow: hidden which still allows programmatic scrolling, overflow: clip forbids scrolling entirely, through any mechanism, and therefore the box is not a scroll container. Unlike hidden, this value does not cause the element to establish a new formatting context.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-overflow-clip",
"type": "value",
"value": "clip"
},
{
"name": "scroll",
"prose": "This value indicates that the content is clipped to the padding box, but can be scrolled into view (and therefore the box is a scroll container). Furthermore, if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed whether or not any of its content is clipped. This avoids any problem with scrollbars appearing and disappearing in a dynamic environment. When the target medium is print, overflowing content may be printed; it is not defined where it may be printed.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-overflow-scroll",
"type": "value",
"value": "scroll"
},
{
"name": "auto",
"prose": "Like scroll when the box has scrollable overflow; like hidden otherwise. Thus, if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism will only be displayed if there is overflow.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-overflow-auto",
"type": "value",
"value": "auto"
},
{
"name": "overlay",
"prose": "User agents must also support the overlay keyword as a legacy value alias of auto.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-overflow-overlay",
"type": "value",
"value": "overlay"
}
],
"styleDeclaration": [
"overflow-y",
"overflowY"
]
},
{
"name": "overflow-block",
"href": "https://drafts.csswg.org/css-overflow-3/#propdef-overflow-block",
"value": "visible | hidden | clip | scroll | auto",
"initial": "visible",
"appliesTo": "block containers [CSS2], flex containers [CSS3-FLEXBOX], grid containers [CSS3-GRID-LAYOUT]",
"inherited": "no",
"percentages": "N/A",
"computedValue": "usually specified value, but see text",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"logicalPropertyGroup": "overflow",
"values": [
{
"name": "overlay",
"prose": "User agents must also support the overlay keyword as a legacy value alias of auto.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-overflow-overlay",
"type": "value",
"value": "overlay"
}
],
"styleDeclaration": [
"overflow-block",
"overflowBlock"
]
},
{
"name": "overflow-inline",
"href": "https://drafts.csswg.org/css-overflow-3/#propdef-overflow-inline",
"value": "visible | hidden | clip | scroll | auto",
"initial": "visible",
"appliesTo": "block containers [CSS2], flex containers [CSS3-FLEXBOX], grid containers [CSS3-GRID-LAYOUT]",
"inherited": "no",
"percentages": "N/A",
"computedValue": "usually specified value, but see text",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"logicalPropertyGroup": "overflow",
"values": [
{
"name": "overlay",
"prose": "User agents must also support the overlay keyword as a legacy value alias of auto.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-overflow-overlay",
"type": "value",
"value": "overlay"
}
],
"styleDeclaration": [
"overflow-inline",
"overflowInline"
]
},
{
"name": "overflow",
"href": "https://drafts.csswg.org/css-overflow-3/#propdef-overflow",
"value": "<'overflow-block'>{1,2}",
"initial": "visible",
"appliesTo": "block containers [CSS2], flex containers [CSS3-FLEXBOX], and grid containers [CSS3-GRID-LAYOUT]",
"inherited": "no",
"percentages": "N/A",
"computedValue": "see individual properties",
"animationType": "discrete",
"canonicalOrder": "per grammar",
"values": [
{
"name": "visible",
"prose": "There is no special handling of overflow, that is, the box’s content is rendered outside the box if positioned there. The box is not a scroll container.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-overflow-visible",
"type": "value",
"value": "visible"
},
{
"name": "hidden",
"prose": "This value indicates that the box’s content is clipped to its padding box and that the UA must not provide any scrolling user interface to view the content outside the clipping region, nor allow scrolling by direct intervention of the user, such as dragging on a touch screen or using the scrolling wheel on a mouse. However, the content must still be scrollable programmatically, for example using the mechanisms defined in [CSSOM-VIEW], and the box is therefore still a scroll container.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-overflow-hidden",
"type": "value",
"value": "hidden"
},
{
"name": "clip",
"prose": "This value indicates that the box’s content is clipped to its overflow clip edge and that no scrolling user interface should be provided by the UA to view the content outside the clipping region. In addition, unlike overflow: hidden which still allows programmatic scrolling, overflow: clip forbids scrolling entirely, through any mechanism, and therefore the box is not a scroll container. Unlike hidden, this value does not cause the element to establish a new formatting context.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-overflow-clip",
"type": "value",
"value": "clip"
},
{
"name": "scroll",
"prose": "This value indicates that the content is clipped to the padding box, but can be scrolled into view (and therefore the box is a scroll container). Furthermore, if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed whether or not any of its content is clipped. This avoids any problem with scrollbars appearing and disappearing in a dynamic environment. When the target medium is print, overflowing content may be printed; it is not defined where it may be printed.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-overflow-scroll",
"type": "value",
"value": "scroll"
},
{
"name": "auto",
"prose": "Like scroll when the box has scrollable overflow; like hidden otherwise. Thus, if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism will only be displayed if there is overflow.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-overflow-auto",
"type": "value",
"value": "auto"
},
{
"name": "overlay",
"prose": "User agents must also support the overlay keyword as a legacy value alias of auto.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-overflow-overlay",
"type": "value",
"value": "overlay"
}
],
"styleDeclaration": [
"overflow"
]
},
{
"name": "overflow-clip-margin",
"href": "https://drafts.csswg.org/css-overflow-3/#propdef-overflow-clip-margin",
"value": "<visual-box> || <length [0,∞]>",
"initial": "0px",
"appliesTo": "boxes to which overflow applies",
"inherited": "no",
"percentages": "n/a",
"computedValue": "the computed <length> and a <visual-box> keyword",
"canonicalOrder": "per grammar",
"animationType": "per computed value if the <visual-box> values match; otherwise discrete",
"values": [
{
"name": "<visual-box>",
"prose": "Specifies the box edge to use as the overflow clip edge origin, i.e. when the specified offset is zero. If omitted, defaults to padding-box.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-overflow-clip-margin-visual-box",
"type": "value",
"value": "<visual-box>"
},
{
"name": "<length [0,∞]>",
"prose": "The specified offset dictates how much the overflow clip edge is expanded from the specified box edge Negative values are invalid. Defaults to zero if omitted.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-overflow-clip-margin-length-0",
"type": "value",
"value": "<length [0,∞]>"
}
],
"styleDeclaration": [
"overflow-clip-margin",
"overflowClipMargin"
]
},
{
"name": "scroll-behavior",
"href": "https://drafts.csswg.org/css-overflow-3/#propdef-scroll-behavior",
"value": "auto | smooth",
"initial": "auto",
"appliesTo": "scroll containers",
"inherited": "no",
"percentages": "n/a",
"computedValue": "specified value",
"canonicalOrder": "per grammar",
"animationType": "not animatable",
"values": [
{
"name": "auto",
"prose": "The scroll container is scrolled in an instant fashion.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-scroll-behavior-auto",
"type": "value",
"value": "auto"
},
{
"name": "smooth",
"prose": "The scroll container is scrolled in a smooth fashion using a user-agent-defined timing function over a user-agent-defined period of time. User agents should follow platform conventions, if any.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-scroll-behavior-smooth",
"type": "value",
"value": "smooth"
}
],
"styleDeclaration": [
"scroll-behavior",
"scrollBehavior"
]
},
{
"name": "scrollbar-gutter",
"href": "https://drafts.csswg.org/css-overflow-3/#propdef-scrollbar-gutter",
"value": "auto | stable && both-edges?",
"initial": "auto",
"appliesTo": "scroll containers",
"inherited": "no",
"percentages": "n/a",
"computedValue": "specified keyword(s)",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "Classic scrollbars consume space by creating a scrollbar gutter when overflow is scroll, or when overflow is auto and the box is overflowing. Overlay scrollbars do not consume space.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-scrollbar-gutter-auto",
"type": "value",
"value": "auto"
},
{
"name": "stable",
"prose": "The scrollbar gutter is present for classic scrollbars when overflow is hidden, scroll, or auto, regardless of whether the box is actually overflowing. Overlay scrollbars do not consume space.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-scrollbar-gutter-stable",
"type": "value",
"value": "stable"
},
{
"name": "both-edges",
"prose": "If a scrollbar gutter would be present on one of the inline start edge or the inline end edge of the box, another scrollbar gutter must be present on the opposite edge as well.",
"href": "https://drafts.csswg.org/css-overflow-3/#valdef-scrollbar-gutter-both-edges",
"type": "value",
"value": "both-edges"
}
],
"styleDeclaration": [
"scrollbar-gutter",
"scrollbarGutter"
]
},
{
"name": "text-overflow",
"href": "https://drafts.csswg.org/css-overflow-3/#propdef-text-overflow",
"value": "clip | ellipsis",
"initial": "clip",
"appliesTo": "block containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "clip",
"prose": "Clip inline content that overflows its block container element. Characters may be only partially rendered.",
"href": "https://drafts.csswg.org/css-overflow-3/#overflow-clip",
"type": "value",
"value": "clip"
},
{
"name": "ellipsis",
"prose": "Render an ellipsis character (U+2026) to represent clipped inline content. Implementations may substitute a more language, script, or writing-mode appropriate ellipsis character, or three dots \"...\" if the ellipsis character is unavailable.",
"href": "https://drafts.csswg.org/css-overflow-3/#overflow-ellipsis",
"type": "value",
"value": "ellipsis"
}
],
"styleDeclaration": [
"text-overflow",
"textOverflow"
]
}
],
"atrules": [],
"selectors": [],
"values": []
}