-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy pathcss-break.json
444 lines (444 loc) · 18.3 KB
/
css-break.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
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
{
"spec": {
"title": "CSS Fragmentation Module Level 4",
"url": "https://drafts.csswg.org/css-break-4/"
},
"properties": [
{
"name": "break-before",
"href": "https://drafts.csswg.org/css-break-4/#propdef-break-before",
"value": "auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region",
"initial": "auto",
"appliesTo": "block-level boxes, grid items, flex items, table row groups, table rows (but see prose)",
"inherited": "no",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "Neither force nor forbid a break before/after the principal box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-auto",
"type": "value",
"value": "auto"
},
{
"name": "avoid",
"prose": "Avoid a break before/after the principal box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-avoid",
"type": "value",
"value": "avoid"
},
{
"name": "always",
"prose": "Always force a break before/after the principal box. The type of this break is that of the immediately-containing fragmentation context. For example, in a multi-column container forces a column break; in paged media not inside a multi-column container, forces a page break.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-always",
"type": "value",
"value": "always"
},
{
"name": "all",
"prose": "Always force a break before/after the principal box. This value breaks through all containing fragmentation contexts. For example, inside a multi-column container in a region in a multi-column container in paged media, it forces simultaneously a column break in the inner multi-column container, a region break, a column break in the outer multi-column container, and a page break. It’s unclear if this value is needed.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-all",
"type": "value",
"value": "all"
},
{
"name": "avoid-page",
"prose": "Avoid a page break before/after the principal box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-avoid-page",
"type": "value",
"value": "avoid-page"
},
{
"name": "page",
"prose": "Always force a page break before/after the principal box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-page",
"type": "value",
"value": "page"
},
{
"name": "left",
"prose": "Force one or two page breaks before/after the principal box so that the next page is formatted as a left page.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-left",
"type": "value",
"value": "left"
},
{
"name": "right",
"prose": "Force one or two page breaks before/after the principal box so that the next page is formatted as a right page.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-right",
"type": "value",
"value": "right"
},
{
"name": "recto",
"prose": "Force one or two page breaks before/after the principal box so that the next page is formatted as either a left page or a right page, whichever is second (according to the page progression) in a page spread.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-recto",
"type": "value",
"value": "recto"
},
{
"name": "verso",
"prose": "Force one or two page breaks before/after the principal box so that the next page is formatted as either a left page or a right page, whichever is first (according to the page progression) in a page spread.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-verso",
"type": "value",
"value": "verso"
},
{
"name": "avoid-column",
"prose": "Avoid a column break before/after the principal box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-avoid-column",
"type": "value",
"value": "avoid-column"
},
{
"name": "column",
"prose": "Always force a column break before/after the principal box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-column",
"type": "value",
"value": "column"
},
{
"name": "avoid-region",
"prose": "Avoid a region break before/after the principal box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-avoid-region",
"type": "value",
"value": "avoid-region"
},
{
"name": "region",
"prose": "Always force a region break before/after the principal box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-region",
"type": "value",
"value": "region"
}
],
"styleDeclaration": [
"break-before",
"breakBefore"
]
},
{
"name": "break-after",
"href": "https://drafts.csswg.org/css-break-4/#propdef-break-after",
"value": "auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region",
"initial": "auto",
"appliesTo": "block-level boxes, grid items, flex items, table row groups, table rows (but see prose)",
"inherited": "no",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "Neither force nor forbid a break before/after the principal box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-auto",
"type": "value",
"value": "auto"
},
{
"name": "avoid",
"prose": "Avoid a break before/after the principal box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-avoid",
"type": "value",
"value": "avoid"
},
{
"name": "always",
"prose": "Always force a break before/after the principal box. The type of this break is that of the immediately-containing fragmentation context. For example, in a multi-column container forces a column break; in paged media not inside a multi-column container, forces a page break.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-always",
"type": "value",
"value": "always"
},
{
"name": "all",
"prose": "Always force a break before/after the principal box. This value breaks through all containing fragmentation contexts. For example, inside a multi-column container in a region in a multi-column container in paged media, it forces simultaneously a column break in the inner multi-column container, a region break, a column break in the outer multi-column container, and a page break. It’s unclear if this value is needed.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-all",
"type": "value",
"value": "all"
},
{
"name": "avoid-page",
"prose": "Avoid a page break before/after the principal box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-avoid-page",
"type": "value",
"value": "avoid-page"
},
{
"name": "page",
"prose": "Always force a page break before/after the principal box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-page",
"type": "value",
"value": "page"
},
{
"name": "left",
"prose": "Force one or two page breaks before/after the principal box so that the next page is formatted as a left page.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-left",
"type": "value",
"value": "left"
},
{
"name": "right",
"prose": "Force one or two page breaks before/after the principal box so that the next page is formatted as a right page.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-right",
"type": "value",
"value": "right"
},
{
"name": "recto",
"prose": "Force one or two page breaks before/after the principal box so that the next page is formatted as either a left page or a right page, whichever is second (according to the page progression) in a page spread.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-recto",
"type": "value",
"value": "recto"
},
{
"name": "verso",
"prose": "Force one or two page breaks before/after the principal box so that the next page is formatted as either a left page or a right page, whichever is first (according to the page progression) in a page spread.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-verso",
"type": "value",
"value": "verso"
},
{
"name": "avoid-column",
"prose": "Avoid a column break before/after the principal box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-avoid-column",
"type": "value",
"value": "avoid-column"
},
{
"name": "column",
"prose": "Always force a column break before/after the principal box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-column",
"type": "value",
"value": "column"
},
{
"name": "avoid-region",
"prose": "Avoid a region break before/after the principal box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-avoid-region",
"type": "value",
"value": "avoid-region"
},
{
"name": "region",
"prose": "Always force a region break before/after the principal box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-before-region",
"type": "value",
"value": "region"
}
],
"styleDeclaration": [
"break-after",
"breakAfter"
]
},
{
"name": "break-inside",
"href": "https://drafts.csswg.org/css-break-4/#propdef-break-inside",
"value": "auto | avoid | avoid-page | avoid-column | avoid-region",
"initial": "auto",
"appliesTo": "all elements except inline-level boxes, internal ruby boxes, table column boxes, table column group boxes, absolutely-positioned boxes",
"inherited": "no",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "Impose no additional breaking constraints within the box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-inside-auto",
"type": "value",
"value": "auto"
},
{
"name": "avoid",
"prose": "Avoid breaks within the box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-inside-avoid",
"type": "value",
"value": "avoid"
},
{
"name": "avoid-page",
"prose": "Avoid a page break within the box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-inside-avoid-page",
"type": "value",
"value": "avoid-page"
},
{
"name": "avoid-column",
"prose": "Avoid a column break within the box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-inside-avoid-column",
"type": "value",
"value": "avoid-column"
},
{
"name": "avoid-region",
"prose": "Avoid a region break within the box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-inside-avoid-region",
"type": "value",
"value": "avoid-region"
}
],
"styleDeclaration": [
"break-inside",
"breakInside"
]
},
{
"name": "orphans",
"href": "https://drafts.csswg.org/css-break-4/#propdef-orphans",
"value": "<integer [1,∞]>",
"initial": "2",
"appliesTo": "block containers that establish an inline formatting context",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "specified integer",
"canonicalOrder": "per grammar",
"animationType": "by computed value type",
"styleDeclaration": [
"orphans"
]
},
{
"name": "widows",
"href": "https://drafts.csswg.org/css-break-4/#propdef-widows",
"value": "<integer [1,∞]>",
"initial": "2",
"appliesTo": "block containers that establish an inline formatting context",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "specified integer",
"canonicalOrder": "per grammar",
"animationType": "by computed value type",
"styleDeclaration": [
"widows"
]
},
{
"name": "margin-break",
"href": "https://drafts.csswg.org/css-break-4/#propdef-margin-break",
"value": "auto | keep | discard",
"initial": "auto",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "When an unforced break occurs before or after the box, any margins adjoining the break truncate to the remaining fragmentainer extent before the break, and are truncated to zero after the break. When a forced break occurs there, adjoining margins before the break are truncated, but margins after the break are preserved. Cloned margins are always truncated to zero.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-margin-break-auto",
"type": "value",
"value": "auto"
},
{
"name": "keep",
"prose": "Margins adjoining a fragmentation break are not truncated.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-margin-break-keep",
"type": "value",
"value": "keep"
},
{
"name": "discard",
"prose": "Margins adjoining a fragmentation break are always truncated, including at the start and end of a fragmentation context.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-margin-break-discard",
"type": "value",
"value": "discard"
}
],
"styleDeclaration": [
"margin-break",
"marginBreak"
]
},
{
"name": "box-decoration-break",
"href": "https://drafts.csswg.org/css-break-4/#propdef-box-decoration-break",
"value": "slice | clone",
"initial": "slice",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "clone",
"prose": "Each box fragment is independently wrapped with the border, padding, and margin. The border-radius and border-image and box-shadow, if any, are applied to each fragment independently. The background is drawn independently in each fragment of the element. A no-repeat background image will thus be rendered once in each fragment of the element.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-box-decoration-break-clone",
"type": "value",
"value": "clone"
},
{
"name": "slice",
"prose": "The effect is as though the element were rendered with no breaks present, and then sliced by the breaks afterward: no border and no padding are inserted at a break; no box-shadow is drawn at a broken edge; and backgrounds, border-radius, and the border-image are applied to the geometry of the whole box as if it were unbroken.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-box-decoration-break-slice",
"type": "value",
"value": "slice"
}
],
"styleDeclaration": [
"box-decoration-break",
"boxDecorationBreak"
]
}
],
"atrules": [],
"selectors": [],
"values": [],
"warnings": [
{
"msg": "Dangling value",
"name": "auto",
"prose": "Impose no additional breaking constraints within the box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-inside-auto",
"type": "value",
"value": "auto",
"for": "page-break-inside"
},
{
"msg": "Dangling value",
"name": "avoid",
"prose": "Avoid breaks within the box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-inside-avoid",
"type": "value",
"value": "avoid",
"for": "page-break-inside"
},
{
"msg": "Dangling value",
"name": "avoid-page",
"prose": "Avoid a page break within the box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-inside-avoid-page",
"type": "value",
"value": "avoid-page",
"for": "page-break-inside"
},
{
"msg": "Dangling value",
"name": "avoid-column",
"prose": "Avoid a column break within the box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-inside-avoid-column",
"type": "value",
"value": "avoid-column",
"for": "page-break-inside"
},
{
"msg": "Dangling value",
"name": "avoid-region",
"prose": "Avoid a region break within the box.",
"href": "https://drafts.csswg.org/css-break-4/#valdef-break-inside-avoid-region",
"type": "value",
"value": "avoid-region",
"for": "page-break-inside"
}
]
}