-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathcss-page.json
382 lines (382 loc) · 16.4 KB
/
css-page.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
{
"spec": {
"title": "CSS Paged Media Module Level 3",
"url": "https://drafts.csswg.org/css-page-3/"
},
"properties": [
{
"name": "page",
"href": "https://drafts.csswg.org/css-page-3/#propdef-page",
"value": "auto | <custom-ident>",
"initial": "auto",
"appliesTo": "boxes that create class A break points",
"inherited": "no (but see prose)",
"percentages": "n/a",
"computedValue": "specified value",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"styleDeclaration": [
"page"
]
}
],
"atrules": [
{
"name": "@page",
"prose": "Authors can specify various aspects of a page box, such as its dimensions, orientation, and margins, within an @page rule. @page rules are allowed wherever rule-sets are allowed. An @page rule consists of the keyword @page, an optional comma-separated list of page selectors and a block of declarations (said to be in the page context). An @page rule can also contain other at-rules, interleaved between declarations. The current level of this specification only allows margin at-rules inside @page.",
"href": "https://drafts.csswg.org/css-page-3/#at-ruledef-page",
"descriptors": [
{
"name": "size",
"href": "https://drafts.csswg.org/css-page-3/#descdef-page-size",
"for": "@page",
"value": "<length [0,∞]>{1,2} | auto | [ <page-size> || [ portrait | landscape ] ]",
"initial": "auto",
"computedValue": "specified value, with <length>s made absolute.",
"values": [
{
"name": "auto",
"prose": "The page box will be set to a size and orientation chosen by the UA. In the usual case, the page box size and orientation is chosen to match the target media sheet.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-size-auto",
"type": "value",
"value": "auto"
},
{
"name": "landscape",
"prose": "Specifies that the page’s content be printed in landscape orientation. The longer sides of the page box are horizontal. If a <page-size> is not specified, the size of the page sheet is chosen by the UA.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-size-landscape",
"type": "value",
"value": "landscape"
},
{
"name": "portrait",
"prose": "Specifies that the page’s content be printed in portrait orientation. The shorter sides of the page box are horizontal. If a <page-size> is not specified, the size of the page sheet is chosen by the UA.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-size-portrait",
"type": "value",
"value": "portrait"
},
{
"name": "<length [0,∞]>",
"prose": "The page box will be set to the given absolute dimension(s). If only one length value is specified, it sets both the width and height of the page box (i.e., the box is a square). If two length values are specified, the first establishes the page box width, and the second the page box height. Values in units of em and ex refer to the page context’s font. Negative lengths are illegal.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-size-length-0",
"type": "value",
"value": "<length [0,∞]>"
},
{
"name": "<page-size>",
"prose": "A page size can be specified using one of the following media names. This is the equivalent of specifying size using length values. The definition of the media names comes from Media Standardized Names [PWGMSN].",
"href": "https://drafts.csswg.org/css-page-3/#typedef-page-size-page-size",
"type": "type",
"values": [
{
"name": "A5",
"prose": "Equivalent to the size of ISO A5 media: 148mm wide and 210 mm high.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-size-a5",
"type": "value",
"value": "A5"
},
{
"name": "A4",
"prose": "Equivalent to the size of ISO A4 media: 210 mm wide and 297 mm high.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-size-a4",
"type": "value",
"value": "A4"
},
{
"name": "A3",
"prose": "Equivalent to the size of ISO A3 media: 297mm wide and 420mm high.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-size-a3",
"type": "value",
"value": "A3"
},
{
"name": "B5",
"prose": "Equivalent to the size of ISO B5 media: 176mm wide by 250mm high.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-size-b5",
"type": "value",
"value": "B5"
},
{
"name": "B4",
"prose": "Equivalent to the size of ISO B4 media: 250mm wide by 353mm high.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-size-b4",
"type": "value",
"value": "B4"
},
{
"name": "JIS-B5",
"prose": "Equivalent to the size of JIS B5 media: 182mm wide by 257mm high.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-size-jis-b5",
"type": "value",
"value": "JIS-B5"
},
{
"name": "JIS-B4",
"prose": "Equivalent to the size of JIS B4 media: 257mm wide by 364mm high.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-size-jis-b4",
"type": "value",
"value": "JIS-B4"
},
{
"name": "letter",
"prose": "Equivalent to the size of North American letter media: 8.5 inches wide and 11 inches high",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-size-letter",
"type": "value",
"value": "letter"
},
{
"name": "legal",
"prose": "Equivalent to the size of North American legal: 8.5 inches wide by 14 inches high.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-size-legal",
"type": "value",
"value": "legal"
},
{
"name": "ledger",
"prose": "Equivalent to the size of North American ledger: 11 inches wide by 17 inches high.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-size-ledger",
"type": "value",
"value": "ledger"
}
]
}
]
},
{
"name": "page-orientation",
"href": "https://drafts.csswg.org/css-page-3/#descdef-page-page-orientation",
"for": "@page",
"value": "upright | rotate-left | rotate-right",
"initial": "upright",
"computedValue": "as specified",
"values": [
{
"name": "upright",
"prose": "No special orientation is applied; the page is laid out and formatted as normal.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-orientation-upright",
"type": "value",
"value": "upright"
},
{
"name": "rotate-left",
"prose": "After the page has been laid out, if the output medium supports rotation, this value indicates that the page must be displayed rotated a quarter turn to the left (counter-clockwise) of how it was laid out.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-orientation-rotate-left",
"type": "value",
"value": "rotate-left"
},
{
"name": "rotate-right",
"prose": "Same as rotate-left, except the page must be displayed rotated a quarter turn to the right (clockwise) of how it was laid out.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-orientation-rotate-right",
"type": "value",
"value": "rotate-right"
}
]
},
{
"name": "marks",
"href": "https://drafts.csswg.org/css-page-3/#descdef-page-marks",
"for": "@page",
"value": "none | [ crop || cross ]",
"initial": "none",
"computedValue": "as specified",
"values": [
{
"name": "none",
"prose": "Specifies that neither crop marks nor registration marks should be printed: the area outside the bleed area will be completely blank.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-marks-none",
"type": "value",
"value": "none"
},
{
"name": "crop",
"prose": "Specifies that crop marks should be printed. These are typically short lines outside the page box that are effectively extensions of the page box’s four edges, thereby indicating the precise location of those edges without placing any ink near or within the page box itself.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-marks-crop",
"type": "value",
"value": "crop"
},
{
"name": "cross",
"prose": "Specifies that registration marks should be printed. These are typically cross-shaped marks outside each edge of the page box used to align sheets of paper during the printing process.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-marks-cross",
"type": "value",
"value": "cross"
}
]
},
{
"name": "bleed",
"href": "https://drafts.csswg.org/css-page-3/#descdef-page-bleed",
"for": "@page",
"value": "auto | <length>",
"initial": "auto",
"computedValue": "as specified",
"values": [
{
"name": "auto",
"prose": "Computes to 6pt if marks has crop and to zero otherwise.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-bleed-auto",
"type": "value",
"value": "auto"
},
{
"name": "<length>",
"prose": "Specifies by how far outward, in each direction, the bleed area extends past the page box. Values may be negative, but there may be implementation-specific limits.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-bleed-length",
"type": "value",
"value": "<length>"
}
]
}
],
"value": "@page <page-selector-list>? { <declaration-rule-list> }",
"values": [
{
"name": ":left",
"prose": "All pages are automatically classified by user agents as either left pages or right pages, based on page progression. The :left and :right pseudo-classes only match left or right pages, respectively.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-left",
"type": "value",
"value": ":left"
},
{
"name": ":right",
"prose": "All pages are automatically classified by user agents as either left pages or right pages, based on page progression. The :left and :right pseudo-classes only match left or right pages, respectively.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-right",
"type": "value",
"value": ":right"
},
{
"name": ":first",
"prose": "The :first pseudo-class matches the first printed page of a document.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-first",
"type": "value",
"value": ":first"
},
{
"name": ":blank",
"prose": "The :blank pseudo-class matches content-empty pages that appear as a result of forced page breaks.",
"href": "https://drafts.csswg.org/css-page-3/#valdef-page-blank",
"type": "value",
"value": ":blank"
}
]
},
{
"name": "@top-left-corner",
"href": "https://drafts.csswg.org/css-page-3/#at-ruledef-top-left-corner",
"descriptors": [],
"value": "@top-left-corner { <declaration-list> };"
},
{
"name": "@top-left",
"href": "https://drafts.csswg.org/css-page-3/#at-ruledef-top-left",
"descriptors": [],
"value": "@top-left { <declaration-list> };"
},
{
"name": "@top-center",
"href": "https://drafts.csswg.org/css-page-3/#at-ruledef-top-center",
"descriptors": [],
"value": "@top-center { <declaration-list> };"
},
{
"name": "@top-right",
"href": "https://drafts.csswg.org/css-page-3/#at-ruledef-top-right",
"descriptors": [],
"value": "@top-right { <declaration-list> };"
},
{
"name": "@top-right-corner",
"href": "https://drafts.csswg.org/css-page-3/#at-ruledef-top-right-corner",
"descriptors": [],
"value": "@top-right-corner { <declaration-list> };"
},
{
"name": "@bottom-left-corner",
"href": "https://drafts.csswg.org/css-page-3/#at-ruledef-bottom-left-corner",
"descriptors": [],
"value": "@bottom-left-corner { <declaration-list> };"
},
{
"name": "@bottom-left",
"href": "https://drafts.csswg.org/css-page-3/#at-ruledef-bottom-left",
"descriptors": [],
"value": "@bottom-left { <declaration-list> };"
},
{
"name": "@bottom-center",
"href": "https://drafts.csswg.org/css-page-3/#at-ruledef-bottom-center",
"descriptors": [],
"value": "@bottom-center { <declaration-list> };"
},
{
"name": "@bottom-right",
"href": "https://drafts.csswg.org/css-page-3/#at-ruledef-bottom-right",
"descriptors": [],
"value": "@bottom-right { <declaration-list> };"
},
{
"name": "@bottom-right-corner",
"href": "https://drafts.csswg.org/css-page-3/#at-ruledef-bottom-right-corner",
"descriptors": [],
"value": "@bottom-right-corner { <declaration-list> };"
},
{
"name": "@left-top",
"href": "https://drafts.csswg.org/css-page-3/#at-ruledef-left-top",
"descriptors": [],
"value": "@left-top { <declaration-list> };"
},
{
"name": "@left-middle",
"href": "https://drafts.csswg.org/css-page-3/#at-ruledef-left-middle",
"descriptors": [],
"value": "@left-middle { <declaration-list> };"
},
{
"name": "@left-bottom",
"href": "https://drafts.csswg.org/css-page-3/#at-ruledef-left-bottom",
"descriptors": [],
"value": "@left-bottom { <declaration-list> };"
},
{
"name": "@right-top",
"href": "https://drafts.csswg.org/css-page-3/#at-ruledef-right-top",
"descriptors": [],
"value": "@right-top { <declaration-list> };"
},
{
"name": "@right-middle",
"href": "https://drafts.csswg.org/css-page-3/#at-ruledef-right-middle",
"descriptors": [],
"value": "@right-middle { <declaration-list> };"
},
{
"name": "@right-bottom",
"href": "https://drafts.csswg.org/css-page-3/#at-ruledef-right-bottom",
"descriptors": [],
"value": "@right-bottom { <declaration-list> };"
}
],
"selectors": [],
"values": [
{
"name": "<page-selector-list>",
"href": "https://drafts.csswg.org/css-page-3/#typedef-page-selector-list",
"type": "type",
"value": "<page-selector>#"
},
{
"name": "<page-selector>",
"href": "https://drafts.csswg.org/css-page-3/#typedef-page-selector",
"type": "type",
"value": "[ <ident-token>? <pseudo-page>* ]!"
},
{
"name": "<pseudo-page>",
"href": "https://drafts.csswg.org/css-page-3/#typedef-pseudo-page",
"type": "type",
"value": "':' [ left | right | first | blank ]"
}
]
}