-
Notifications
You must be signed in to change notification settings - Fork 72
/
css-lists.json
337 lines (337 loc) · 15.5 KB
/
css-lists.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
{
"spec": {
"title": "CSS Lists and Counters Module Level 3",
"url": "https://drafts.csswg.org/css-lists-3/"
},
"properties": [
{
"name": "list-style-image",
"href": "https://drafts.csswg.org/css-lists-3/#propdef-list-style-image",
"value": "<image> | none",
"initial": "none",
"appliesTo": "list items",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "the keyword noneor the computed <image>",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "<image>",
"prose": "If the <image> represents a valid image, specifies the element’s marker image as the <image>. Otherwise, the element has no marker image.",
"href": "https://drafts.csswg.org/css-lists-3/#valdef-list-style-image-image",
"type": "value",
"value": "<image>"
},
{
"name": "none",
"prose": "The element has no marker image.",
"href": "https://drafts.csswg.org/css-lists-3/#valdef-list-style-image-none",
"type": "value",
"value": "none"
}
],
"styleDeclaration": [
"list-style-image",
"listStyleImage"
]
},
{
"name": "list-style-type",
"href": "https://drafts.csswg.org/css-lists-3/#propdef-list-style-type",
"value": "<counter-style> | <string> | none",
"initial": "disc",
"appliesTo": "list items",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "specified value",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "<counter-style>",
"prose": "Specifies the element’s marker string as the value of the list-item counter represented using the specified <counter-style>. Specifically, the marker string is the result of generating a counter representation of the list-item counter value using the specified <counter-style>, prefixed by the prefix of the <counter-style>, and followed by the suffix of the <counter-style>. If the specified <counter-style> does not exist, decimal is assumed.",
"href": "https://drafts.csswg.org/css-lists-3/#valdef-list-style-type-counter-style",
"type": "value",
"value": "<counter-style>"
},
{
"name": "<string>",
"prose": "The element’s marker string is the specified <string>.",
"href": "https://drafts.csswg.org/css-lists-3/#valdef-list-style-type-string",
"type": "value",
"value": "<string>"
},
{
"name": "none",
"prose": "The element has no marker string.",
"href": "https://drafts.csswg.org/css-lists-3/#valdef-list-style-type-none",
"type": "value",
"value": "none"
}
],
"styleDeclaration": [
"list-style-type",
"listStyleType"
]
},
{
"name": "list-style-position",
"href": "https://drafts.csswg.org/css-lists-3/#propdef-list-style-position",
"value": "inside | outside",
"initial": "outside",
"appliesTo": "list items",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "keyword, but see prose",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "inside",
"prose": "No special effect. (The ::marker is an inline element at the start of the list item’s contents.)",
"href": "https://drafts.csswg.org/css-lists-3/#valdef-list-style-position-inside",
"type": "value",
"value": "inside"
},
{
"name": "outside",
"prose": "If the list item is a block container: the marker box is a block container and is placed outside the principal block box; however, the position of the list-item marker adjacent to floats is undefined. CSS does not specify the precise location of the marker box or its position in the painting order, but does require that it be placed on the inline-start side of the box, using the writing mode of the box indicated by marker-side. The marker box is fixed with respect to the principal block box’s border and does not scroll with the principal box’s content. A UA may hide the marker if the element’s overflow is other than visible. (This allowance may change in the future.) The size or contents of the marker box may affect the height of the principal block box and/or the height of its first line box, and in some cases may cause the creation of a new line box; this interaction is also not defined. This is handwavey nonsense from CSS2, and needs a real definition. If the list item is an inline box: this value is equivalent to inside. Alternatively, outside could lay out the marker as a previous sibling of the principal inline box.",
"href": "https://drafts.csswg.org/css-lists-3/#list-style-position-outside",
"type": "value",
"value": "outside"
}
],
"styleDeclaration": [
"list-style-position",
"listStylePosition"
]
},
{
"name": "list-style",
"href": "https://drafts.csswg.org/css-lists-3/#propdef-list-style",
"value": "<'list-style-position'> || <'list-style-image'> || <'list-style-type'>",
"initial": "see individual properties",
"appliesTo": "list items",
"inherited": "see individual properties",
"percentages": "see individual properties",
"computedValue": "see individual properties",
"animationType": "see individual properties",
"canonicalOrder": "per grammar",
"styleDeclaration": [
"list-style",
"listStyle"
]
},
{
"name": "marker-side",
"href": "https://drafts.csswg.org/css-lists-3/#propdef-marker-side",
"value": "match-self | match-parent",
"initial": "match-self",
"appliesTo": "list items",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "match-self",
"prose": "The marker box is positioned using the directionality of the ::marker’s originating element.",
"href": "https://drafts.csswg.org/css-lists-3/#valdef-marker-side-match-self",
"type": "value",
"value": "match-self"
},
{
"name": "match-parent",
"prose": "The marker box is positioned using the directionality of the ::marker’s originating element’s parent element.",
"href": "https://drafts.csswg.org/css-lists-3/#valdef-marker-side-match-parent",
"type": "value",
"value": "match-parent"
}
],
"styleDeclaration": [
"marker-side",
"markerSide"
]
},
{
"name": "counter-reset",
"href": "https://drafts.csswg.org/css-lists-3/#propdef-counter-reset",
"value": "[ <counter-name> <integer>? | <reversed-counter-name> <integer>? ]+ | none",
"initial": "none",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "n/a",
"computedValue": "the keyword none or a list, each item an identifier or a reversed() function paired with an integer",
"canonicalOrder": "per grammar",
"animationType": "by computed value type",
"values": [
{
"name": "none",
"prose": "This element does not create any new counters.",
"href": "https://drafts.csswg.org/css-lists-3/#valdef-counter-reset-none",
"type": "value",
"value": "none"
},
{
"name": "<counter-name> <integer>?",
"prose": "Instantiates a counter of the given <counter-name> with a starting value of the given <integer>, defaulting to 0.",
"href": "https://drafts.csswg.org/css-lists-3/#valdef-counter-reset-counter-name-integer",
"type": "value",
"value": "<counter-name> <integer>?"
},
{
"name": "<reversed-counter-name> <integer>?",
"prose": "Instantiates a reversed counter of the given <counter-name> with a starting value of the given <integer>, or no starting value if not given.",
"href": "https://drafts.csswg.org/css-lists-3/#valdef-counter-reset-reversed-counter-name-integer",
"type": "value",
"value": "<reversed-counter-name> <integer>?"
},
{
"name": "list-item",
"prose": "In addition to any explicitly defined counters that authors write in their styles, list items automatically increment a special list-item counter, which is used when generating the default marker string on list items (see list-style-type).",
"href": "https://drafts.csswg.org/css-lists-3/#valdef-counter-increment-list-item",
"type": "value",
"value": "list-item"
}
],
"styleDeclaration": [
"counter-reset",
"counterReset"
]
},
{
"name": "counter-increment",
"href": "https://drafts.csswg.org/css-lists-3/#propdef-counter-increment",
"value": "[ <counter-name> <integer>? ]+ | none",
"initial": "none",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "n/a",
"computedValue": "the keyword none or a list, each item an identifier paired with an integer",
"canonicalOrder": "per grammar",
"animationType": "by computed value type",
"values": [
{
"name": "none",
"prose": "This element does not alter the value of any counters.",
"href": "https://drafts.csswg.org/css-lists-3/#valdef-counter-set-none",
"type": "value",
"value": "none"
},
{
"name": "<counter-name> <integer>?",
"prose": "Sets (for counter-set) or increments (for counter-increment) the value of the named counter on the element to/by the specified <integer>. If the <integer> is omitted, it defaults to 1 (for counter-increment) or 0 (for counter-set). If there is not currently a counter of the given name on the element, the element instantiates a new counter of the given name with a starting value of 0 before setting or incrementing its value.",
"href": "https://drafts.csswg.org/css-lists-3/#valdef-counter-set-counter-name-integer",
"type": "value",
"value": "<counter-name> <integer>?"
},
{
"name": "list-item",
"prose": "In addition to any explicitly defined counters that authors write in their styles, list items automatically increment a special list-item counter, which is used when generating the default marker string on list items (see list-style-type).",
"href": "https://drafts.csswg.org/css-lists-3/#valdef-counter-increment-list-item",
"type": "value",
"value": "list-item"
}
],
"styleDeclaration": [
"counter-increment",
"counterIncrement"
]
},
{
"name": "counter-set",
"href": "https://drafts.csswg.org/css-lists-3/#propdef-counter-set",
"value": "[ <counter-name> <integer>? ]+ | none",
"initial": "none",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "n/a",
"computedValue": "the keyword none or a list, each item an identifier paired with an integer",
"canonicalOrder": "per grammar",
"animationType": "by computed value type",
"values": [
{
"name": "none",
"prose": "This element does not alter the value of any counters.",
"href": "https://drafts.csswg.org/css-lists-3/#valdef-counter-set-none",
"type": "value",
"value": "none"
},
{
"name": "<counter-name> <integer>?",
"prose": "Sets (for counter-set) or increments (for counter-increment) the value of the named counter on the element to/by the specified <integer>. If the <integer> is omitted, it defaults to 1 (for counter-increment) or 0 (for counter-set). If there is not currently a counter of the given name on the element, the element instantiates a new counter of the given name with a starting value of 0 before setting or incrementing its value.",
"href": "https://drafts.csswg.org/css-lists-3/#valdef-counter-set-counter-name-integer",
"type": "value",
"value": "<counter-name> <integer>?"
},
{
"name": "list-item",
"prose": "In addition to any explicitly defined counters that authors write in their styles, list items automatically increment a special list-item counter, which is used when generating the default marker string on list items (see list-style-type).",
"href": "https://drafts.csswg.org/css-lists-3/#valdef-counter-increment-list-item",
"type": "value",
"value": "list-item"
}
],
"styleDeclaration": [
"counter-set",
"counterSet"
]
}
],
"atrules": [],
"selectors": [],
"values": [
{
"name": "<counter-name>",
"prose": "Counters are referred to in CSS syntax using the <counter-name> type, which represents their name as a <custom-ident>. A <counter-name> name cannot match the keyword none; such an identifier is invalid as a <counter-name>.",
"href": "https://drafts.csswg.org/css-lists-3/#typedef-counter-name",
"type": "type"
},
{
"name": "<reversed-counter-name>",
"href": "https://drafts.csswg.org/css-lists-3/#typedef-reversed-counter-name",
"type": "type",
"value": "reversed( <counter-name> )"
},
{
"name": "counter()",
"prose": "Counters have no visible effect by themselves, but their values can be used with the counter() and counters() functions, whose used values represent counter values as strings or images. They are defined as follows:",
"href": "https://drafts.csswg.org/css-lists-3/#funcdef-counter",
"type": "function",
"value": "counter( <counter-name>, <counter-style>? )",
"values": [
{
"name": "list-item",
"prose": "In addition to any explicitly defined counters that authors write in their styles, list items automatically increment a special list-item counter, which is used when generating the default marker string on list items (see list-style-type).",
"href": "https://drafts.csswg.org/css-lists-3/#valdef-counter-increment-list-item",
"type": "value",
"value": "list-item"
}
]
},
{
"name": "counters()",
"prose": "Counters have no visible effect by themselves, but their values can be used with the counter() and counters() functions, whose used values represent counter values as strings or images. They are defined as follows:",
"href": "https://drafts.csswg.org/css-lists-3/#funcdef-counters",
"type": "function",
"value": "counters( <counter-name>, <string>, <counter-style>? )",
"values": [
{
"name": "list-item",
"prose": "In addition to any explicitly defined counters that authors write in their styles, list items automatically increment a special list-item counter, which is used when generating the default marker string on list items (see list-style-type).",
"href": "https://drafts.csswg.org/css-lists-3/#valdef-counter-increment-list-item",
"type": "value",
"value": "list-item"
}
]
},
{
"name": "<counter>",
"href": "https://drafts.csswg.org/css-lists-3/#typedef-counter",
"type": "type",
"value": "<counter()> | <counters()>"
}
]
}