|
7 | 7 | { |
8 | 8 | "name": "content", |
9 | 9 | "href": "https://www.w3.org/TR/css-content-3/#propdef-content", |
10 | | - "value": "normal | none | [ <content-replacement> | <content-list> ] [/ [ <string> | <counter> ]+ ]?", |
| 10 | + "value": "normal | none | [ <content-replacement> | <content-list> ] [/ [ <string> | <counter> | <attr()> ]+ ]?", |
11 | 11 | "initial": "normal", |
12 | 12 | "appliesTo": "all elements, tree-abiding pseudo-elements, and page margin boxes", |
13 | 13 | "inherited": "no", |
|
18 | 18 | "values": [ |
19 | 19 | { |
20 | 20 | "name": "normal", |
21 | | - "prose": "For an element or page margin box, this computes to contents. For ::before and ::after, this computes to none. For ::marker, this computes to itself (normal).", |
| 21 | + "prose": "For an element or page margin box, this computes to contents. For ::before and ::after, this computes to none. For ::marker, ::placeholder, and ::file-selector-button, this computes to itself (normal).", |
22 | 22 | "href": "https://www.w3.org/TR/css-content-3/#valdef-content-normal", |
23 | 23 | "type": "value", |
24 | 24 | "value": "normal" |
25 | 25 | }, |
26 | 26 | { |
27 | 27 | "name": "none", |
28 | | - "prose": "On elements, this inhibits the children of the element from being rendered as children of this element, as if the element was empty. On pseudo-elements it inhibits the creation of the pseudo-element as if it had display: none. In neither case does it prevent any pseudo-elements which have this element or pseudo-element as an originating element from being generated.", |
| 28 | + "prose": "On elements, this behaves as normal. On pseudo-elements it inhibits the creation of the pseudo-element as if it had display: none. In neither case does it prevent any pseudo-elements which have this element or pseudo-element as an originating element from being generated.", |
29 | 29 | "href": "https://www.w3.org/TR/css-content-3/#valdef-content-none", |
30 | 30 | "type": "value", |
31 | 31 | "value": "none" |
|
38 | 38 | }, |
39 | 39 | { |
40 | 40 | "name": "<content-list>", |
41 | | - "value": "[ <string> | contents | <image> | <counter> | <quote> | <target> | <leader()> ]+", |
| 41 | + "prose": "Replaces the element’s contents with one or more anonymous inline boxes corresponding to the specified values, in the order specified. Its normal contents are suppressed and do not generate boxes, as if they were display: none. Each value contributes an inline box to the element’s contents. For <image>, this is an inline anonymous replaced element; for the others, it’s an anonymous inline run of text. If an <image> represents an invalid image, the user agent must do one of the following: \"Skip\" the <image>, generating nothing for it. Display some indication that the image can’t be displayed in place of the <image>, such as a \"broken image\" icon. This specification intentionally does not define which behavior a user agent must use, but it must use one or the other consistently.", |
42 | 42 | "href": "https://www.w3.org/TR/css-content-3/#typedef-content-content-list", |
43 | 43 | "type": "type", |
| 44 | + "value": "[ <string> | <image> | <attr()> | contents | <quote> | <leader()> | <target> | <string()> | <content()> | <counter> ]+", |
44 | 45 | "values": [ |
45 | 46 | { |
46 | 47 | "name": "<string>", |
|
49 | 50 | "type": "value", |
50 | 51 | "value": "<string>" |
51 | 52 | }, |
| 53 | + { |
| 54 | + "name": "attr()", |
| 55 | + "href": "https://www.w3.org/TR/css-content-3/#valdef-content-attr", |
| 56 | + "type": "value", |
| 57 | + "value": "attr()" |
| 58 | + }, |
52 | 59 | { |
53 | 60 | "name": "<image>", |
54 | 61 | "prose": "Represents an anonymous inline replaced element filled with the specified <image>. If the <image> represents an invalid image, this value instead represents nothing. (No inline content is added to the element, as if this value were \"skipped\".)", |
|
58 | 65 | }, |
59 | 66 | { |
60 | 67 | "name": "contents", |
61 | | - "prose": "The element’s descendents. Since this can only be used once per element (you can’t duplicate the children if, e.g., one is a plugin or form control), it is handled as follows:", |
| 68 | + "prose": "The element’s descendants. Since this can only be used once per element (you can’t duplicate the children if, e.g., one is a plugin or form control), it is handled as follows:", |
62 | 69 | "href": "https://www.w3.org/TR/css-content-3/#valdef-content-contents", |
63 | 70 | "type": "value", |
64 | 71 | "value": "contents" |
|
72 | 79 | ] |
73 | 80 | }, |
74 | 81 | { |
75 | | - "name": "/ [ <string> | <counter> ]+", |
| 82 | + "name": "/ [ <string> | <counter> | <attr()> ]+", |
76 | 83 | "prose": "Specifies the \"alt text\" for the element. See § 1.2 Alternative Text for Accessibility for details. If omitted, the element has no \"alt text\".", |
77 | | - "href": "https://www.w3.org/TR/css-content-3/#valdef-content---string--counter", |
| 84 | + "href": "https://www.w3.org/TR/css-content-3/#valdef-content---string--counter--attr", |
78 | 85 | "type": "value", |
79 | | - "value": "/ [ <string> | <counter> ]+" |
| 86 | + "value": "/ [ <string> | <counter> | <attr()> ]+" |
80 | 87 | } |
81 | 88 | ], |
82 | 89 | "styleDeclaration": [ |
|
86 | 93 | { |
87 | 94 | "name": "quotes", |
88 | 95 | "href": "https://www.w3.org/TR/css-content-3/#propdef-quotes", |
89 | | - "value": "auto | none | [ <string> <string> ]+", |
| 96 | + "value": "auto | none | match-parent | [ <string> <string> ]+", |
90 | 97 | "initial": "auto", |
91 | 98 | "appliesTo": "all elements", |
92 | 99 | "inherited": "yes", |
93 | 100 | "percentages": "n/a", |
94 | | - "computedValue": "the keyword none, the keyword auto, or a list, each item a pair of string values", |
| 101 | + "computedValue": "the keyword none, the keyword auto or match-parent, or a list, each item a pair of string values", |
95 | 102 | "canonicalOrder": "per grammar", |
96 | 103 | "animationType": "discrete", |
97 | 104 | "values": [ |
|
104 | 111 | }, |
105 | 112 | { |
106 | 113 | "name": "auto", |
107 | | - "prose": "A typographically appropriate used value for quotes is automatically chosen by the UA based on the content language of the element and/or its parent.", |
| 114 | + "prose": "A typographically appropriate quotation mark system is automatically chosen by the UA based on the content language of the parent (or, if there is no parent, of the element itself).", |
108 | 115 | "href": "https://www.w3.org/TR/css-content-3/#valdef-quotes-auto", |
109 | 116 | "type": "value", |
110 | 117 | "value": "auto" |
| 118 | + }, |
| 119 | + { |
| 120 | + "name": "match-parent", |
| 121 | + "prose": "Specifies the same quotation mark system as the parent. In general this is equivalent to inheriting the parent’s computed value, except that auto it resolves using the same content language that the parent used. Two possible approaches here, currently speccing the latter: a) this computes to the relevant string values, and inherits as such. b) this value effectively inherits as a keyword + a language code, meaning auto, but with this language.", |
| 122 | + "href": "https://www.w3.org/TR/css-content-3/#valdef-quotes-match-parent", |
| 123 | + "type": "value", |
| 124 | + "value": "match-parent" |
111 | 125 | } |
112 | 126 | ], |
113 | 127 | "styleDeclaration": [ |
|
142 | 156 | { |
143 | 157 | "name": "bookmark-level", |
144 | 158 | "href": "https://www.w3.org/TR/css-content-3/#propdef-bookmark-level", |
145 | | - "value": "none | <integer>", |
| 159 | + "value": "none | <integer [1,∞]>", |
146 | 160 | "initial": "none", |
147 | 161 | "appliesTo": "all elements", |
148 | 162 | "inherited": "no", |
|
152 | 166 | "animationType": "by computed value type", |
153 | 167 | "values": [ |
154 | 168 | { |
155 | | - "name": "<integer>", |
| 169 | + "name": "<integer [1,∞]>", |
156 | 170 | "prose": "defines the level of the bookmark, with the top level being 1 (negative and zero values are invalid).", |
157 | | - "href": "https://www.w3.org/TR/css-content-3/#valdef-bookmark-level-integer", |
| 171 | + "href": "https://www.w3.org/TR/css-content-3/#valdef-bookmark-level-integer-1", |
158 | 172 | "type": "value", |
159 | | - "value": "<integer>" |
| 173 | + "value": "<integer [1,∞]>" |
160 | 174 | }, |
161 | 175 | { |
162 | 176 | "name": "none", |
|
188 | 202 | "prose": "<content-list> is defined above, in the section on the string-set property. The value of <content-list> becomes the text content of the bookmark label.", |
189 | 203 | "href": "https://www.w3.org/TR/css-content-3/#valdef-bookmark-label-content-list", |
190 | 204 | "type": "value", |
191 | | - "value": "<content-list>", |
| 205 | + "value": "[ <string> | <image> | <attr()> | contents | <quote> | <leader()> | <target> | <string()> | <content()> | <counter> ]+", |
192 | 206 | "values": [ |
193 | 207 | { |
194 | 208 | "name": "<string>", |
|
197 | 211 | "type": "value", |
198 | 212 | "value": "<string>" |
199 | 213 | }, |
| 214 | + { |
| 215 | + "name": "attr()", |
| 216 | + "href": "https://www.w3.org/TR/css-content-3/#valdef-content-attr", |
| 217 | + "type": "value", |
| 218 | + "value": "attr()" |
| 219 | + }, |
200 | 220 | { |
201 | 221 | "name": "<image>", |
202 | 222 | "prose": "Represents an anonymous inline replaced element filled with the specified <image>. If the <image> represents an invalid image, this value instead represents nothing. (No inline content is added to the element, as if this value were \"skipped\".)", |
|
206 | 226 | }, |
207 | 227 | { |
208 | 228 | "name": "contents", |
209 | | - "prose": "The element’s descendents. Since this can only be used once per element (you can’t duplicate the children if, e.g., one is a plugin or form control), it is handled as follows:", |
| 229 | + "prose": "The element’s descendants. Since this can only be used once per element (you can’t duplicate the children if, e.g., one is a plugin or form control), it is handled as follows:", |
210 | 230 | "href": "https://www.w3.org/TR/css-content-3/#valdef-content-contents", |
211 | 231 | "type": "value", |
212 | 232 | "value": "contents" |
|
269 | 289 | "values": [ |
270 | 290 | { |
271 | 291 | "name": "open-quote", |
272 | | - "prose": "These values are replaced by the appropriate string from the quotes property, and increments (decrements) the level of nesting for quotes. See § 2.4.1 Specifying quotes with the quotes property for more information.", |
| 292 | + "prose": "These values are replaced by the appropriate string as defined by the quotes property, and increments (for open-quote) or decrements (for close-quote) the level of nesting for quotes.", |
273 | 293 | "href": "https://www.w3.org/TR/css-content-3/#valdef-content-open-quote", |
274 | 294 | "type": "value", |
275 | 295 | "value": "open-quote" |
276 | 296 | }, |
277 | 297 | { |
278 | 298 | "name": "close-quote", |
279 | | - "prose": "These values are replaced by the appropriate string from the quotes property, and increments (decrements) the level of nesting for quotes. See § 2.4.1 Specifying quotes with the quotes property for more information.", |
| 299 | + "prose": "These values are replaced by the appropriate string as defined by the quotes property, and increments (for open-quote) or decrements (for close-quote) the level of nesting for quotes.", |
280 | 300 | "href": "https://www.w3.org/TR/css-content-3/#valdef-content-close-quote", |
281 | 301 | "type": "value", |
282 | 302 | "value": "close-quote" |
283 | 303 | }, |
284 | 304 | { |
285 | 305 | "name": "no-open-quote", |
286 | | - "prose": "Inserts nothing (as in none), but increments (decrements) the level of nesting for quotes. See § 2.4.1 Specifying quotes with the quotes property for more information.", |
| 306 | + "prose": "Inserts nothing (as in none), but increments (for no-open-quote) or decrements (for no-close-quote) the level of nesting for quotes.", |
287 | 307 | "href": "https://www.w3.org/TR/css-content-3/#valdef-content-no-open-quote", |
288 | 308 | "type": "value", |
289 | 309 | "value": "no-open-quote" |
290 | 310 | }, |
291 | 311 | { |
292 | 312 | "name": "no-close-quote", |
293 | | - "prose": "Inserts nothing (as in none), but increments (decrements) the level of nesting for quotes. See § 2.4.1 Specifying quotes with the quotes property for more information.", |
| 313 | + "prose": "Inserts nothing (as in none), but increments (for no-open-quote) or decrements (for no-close-quote) the level of nesting for quotes.", |
294 | 314 | "href": "https://www.w3.org/TR/css-content-3/#valdef-content-no-close-quote", |
295 | 315 | "type": "value", |
296 | 316 | "value": "no-close-quote" |
|
0 commit comments