@@ -1570,33 +1570,24 @@ <h3 id=attr><span class=secno>8.3. </span> Attribute References: ‘<a
15701570 class =css > attr()</ code > </ a > ’ expression is:
15711571
15721572 < pre > 'attr(' < a
1573- href ="#wqname "> < var > wqname</ var > </ a > [ ',' <type> [ ',' <value> ]? ]? ')'</ pre >
1573+ href ="#wqname "> < var > wqname</ var > </ a > <type> ? [ ',' <value> ]? ')'</ pre >
15741574
15751575 < p > where < dfn id =wqname > wqname</ dfn > is a < a
15761576 href ="http://dev.w3.org/csswg/css3-namespace/#css-qnames "> CSS qualified
1577- name</ a > [[!CSSNAMESPACE]] and whose syntax is defined as:
1578-
1579- < pre >
1580- wqname
1581- : [ [ namespace_prefix? | '*' ] '|' ident ]
1582- | ident
1583- ;</ pre >
1584- <!-- TODO: Delete this syntax definition when Namespaces is updated to contain the wqname production -->
1585-
1586- < p > The < a href ="#wqname "> < i > wqname</ i > </ a > argument represents an attribute
1587- name. The computed value of the ‘< a href ="#attr-value "> < code
1577+ name</ a > [[!CSSNAMESPACE]] that represents an attribute name. The computed
1578+ value of the ‘< a href ="#attr-value "> < code
15881579 class =css > attr()</ code > </ a > ’ expression is the value of the
15891580 attribute with that name on the element, according to the rules given
15901581 below.
15911582
15921583 < p > The ‘< code class =css > <type> </ code > ’ argument (which is
1593- optional but must be present if the third argument is present) is a
1594- keyword drawn from the list below that tells the UA how to interpret the
1595- attribute value. If omitted, ‘ < code class =css > string</ code > ’
1596- is implied. If the type is not valid for where the ‘< a
1597- href =" #attr-value " > < code class =css > attr()</ code > </ a > ’ expression is
1598- placed, the whole ‘< a href ="#attr-value "> < code
1599- class = css > attr() </ code > </ a > ’ expression is invalid.
1584+ optional) is a keyword drawn from the list below that tells the UA how to
1585+ interpret the attribute value. If omitted, ‘ < code
1586+ class =css > string</ code > ’ is implied. If the type is not valid for
1587+ where the ‘< a href =" #attr-value " > < code
1588+ class =css > attr()</ code > </ a > ’ expression is placed, the whole
1589+ ‘< a href ="#attr-value "> < code class = css > attr() </ code > </ a > ’
1590+ expression is invalid.
16001591
16011592 < p > The ‘< code class =css > <value> </ code > ’ argument (which is
16021593 optional) is a CSS value which must be valid where the ‘< a
@@ -1751,7 +1742,7 @@ <h3 id=attr><span class=secno>8.3. </span> Attribute References: ‘<a
17511742}
17521743stock > * {
17531744 display: block;
1754- width: attr(length, em); /* default 0 */
1745+ width: attr(length em); /* default 0 */
17551746 height: 1em;
17561747 border: solid thin;
17571748 margin: 0.5em;
@@ -1767,9 +1758,9 @@ <h3 id=attr><span class=secno>8.3. </span> Attribute References: ‘<a
17671758to handle replaced content and alternatives to unavailable,
17681759corrupted or unsupported content */
17691760img {
1770- content: replaced attr(src, url), attr(alt, string, none);
1771- height: attr(height, px, auto);
1772- width: attr(width, px, auto);
1761+ content: replaced attr(src url), attr(alt string, none);
1762+ height: attr(height px, auto);
1763+ width: attr(width px, auto);
17731764}</ pre >
17741765 </ div >
17751766
@@ -1779,13 +1770,13 @@ <h3 id=attr><span class=secno>8.3. </span> Attribute References: ‘<a
17791770 them—to be ignored:</ p >
17801771
17811772 < pre >
1782- content: attr(title, color); /* 'content' doesn't accept colors */
1773+ content: attr(title color); /* 'content' doesn't accept colors */
17831774
1784- content: attr(end-of-quote, string, inherit) close-quote;
1775+ content: attr(end-of-quote string, inherit) close-quote;
17851776/* the 'inherit' value is not allowed there, since the result would be
17861777'inherit close-quote', which is invalid. */
17871778
1788- margin: attr(vertical, length) attr(horizontal, deg);
1779+ margin: attr(vertical length) attr(horizontal deg);
17891780/* deg units are not valid at that point */
17901781<!--
17911782font: attr(weight, integer) attr(size, length)/attr(height,
0 commit comments