@@ -99,7 +99,7 @@ Inserting and replacing content with the 'content' property</h2>
9999
100100 <pre class='propdef'>
101101 Name : content
102- Value : normal | none | [ <<content-replacement>> | <<content-list>> ] [/ [ <<string>> | <<counter>> ]+ ]?
102+ Value : normal | none | [ <<content-replacement>> | <<content-list>> ] [/ [ <<string>> | <<counter>> | <<attr()>> ]+ ]?
103103 Initial : normal
104104 Applies To : all elements, tree-abiding pseudo-elements, and page margin boxes
105105 Inherited : no
@@ -172,12 +172,16 @@ Inserting and replacing content with the 'content' property</h2>
172172 Note: Replaced elements do not have ''::before'' or ''::after'' pseudo-elements;
173173 the 'content' property replaces their entire contents.
174174
175+ ISSUE(2889): This value has historically been treated as <<content-list>> on ''::before'' and ''::after'' .
176+ Presumably there's a Web-compat requirement on this,
177+ so these pseudo-elements might need an exception.
178+
175179 <dt> <dfn type><<content-list>></dfn>
176180 <dd>
177181 Equal to:
178182
179183 <pre class=prod>
180- [ <<string>> | <<image>> | contents | <<quote>> | <<leader()>> | <<target>> | <<string()>> | <<content()>> | <<counter>> ]+
184+ [ <<string>> | <<image>> | <<attr()>> | contents | <<quote>> | <<leader()>> | <<target>> | <<string()>> | <<content()>> | <<counter>> ]+
181185 </pre>
182186
183187 Replaces the element's contents with one or more anonymous inline boxes
@@ -204,7 +208,7 @@ Inserting and replacing content with the 'content' property</h2>
204208 Note: If the value of <<content-list>> is a single <<image>> ,
205209 it must instead be interpreted as a <<content-replacement>> .
206210
207- <dt> <dfn>/ [ <<string>> | <<counter>> ]+</dfn>
211+ <dt> <dfn>/ [ <<string>> | <<counter>> | <<attr()>> ]+</dfn>
208212 <dd>
209213 Specifies the "alt text" for the element.
210214 See [[#alt]] for details.
@@ -275,7 +279,7 @@ Alternative Text for Accessibility</h3>
275279
276280
277281<h3 id="strings">
278- String </h3>
282+ Basic Strings: <<string>> and <<attr()>> </h3>
279283
280284 <dl dfn-for="content, <content-list> " dfn-type=value>
281285 <dt> <dfn><<string>></dfn>
@@ -289,6 +293,18 @@ String</h3>
289293 such as in ''content: "First " " Second";'' ,
290294 which by default will render similar to <code> "First Second"</code>
291295 (with a single visible space between the two words).
296+
297+ <dt> <<attr()>>
298+ <dd>
299+ The <dfn noexport>attr()</dfn> functional notation represents
300+ the string stored as the specified attribute’s value.
301+ Its argument is a [=CSS qualified name=] (<code> qname</code> )
302+ representing the attribute name and namespace, if any.
303+ See [[!CSS3-NAMESPACE]] .
304+
305+ Note: As in [[selectors-4#attrnmsp|attribute selectors]] ,
306+ attribute names without an explicit namespace
307+ do not associate with any default namespace.
292308 </dl>
293309
294310<h3 id="content-uri">
@@ -1360,6 +1376,9 @@ bookmark-state</h3>
13601376 (<a href="https://github.com/w3c/csswg-drafts/issues/2038">Issue 2034</a> )
13611377 <li> Defined computed value of ''content: normal'' for ''::placeholder'' and ''::file-selector-button'' .
13621378 (<a href="https://github.com/w3c/csswg-drafts/issues/6124">Issue 6124</a> )
1379+ <li> Fixed an off-by-one error for the [=quote depth=] of closing quotes.
1380+ (<a href="https://github.com/w3c/csswg-drafts/issues/2506">Issue 2506</a> )
1381+ <li> Inlined the definition of ''attr()'' , since it has been dropped from [[CSS-VALUES-4]] .
13631382 <li> Miscellaneous editorial spec clean up.
13641383 </ul>
13651384
0 commit comments