- From: Elika Etemad via cvs-syncmail <cvsmail@w3.org>
- Date: Sat, 03 Mar 2012 01:11:45 +0000
- To: public-css-commits@w3.org
Update of /sources/public/csswg/css3-values In directory hutz:/tmp/cvs-serv18898 Modified Files: Overview.html Overview.src.html Log Message: Drop first comma in attr() per <http://lists.w3.org/Archives/Public/www-style/2012Mar/0013.html> Index: Overview.html =================================================================== RCS file: /sources/public/csswg/css3-values/Overview.html,v retrieving revision 1.160 retrieving revision 1.161 diff -u -d -r1.160 -r1.161 --- Overview.html 3 Mar 2012 00:10:11 -0000 1.160 +++ Overview.html 3 Mar 2012 01:11:43 -0000 1.161 @@ -1570,33 +1570,24 @@ class=css>attr()</code></a>’ expression is: <pre>'attr(' <a - href="#wqname"><var>wqname</var></a> [ ',' <type> [ ',' <value> ]? ]? ')'</pre> + href="#wqname"><var>wqname</var></a> <type>? [ ',' <value> ]? ')'</pre> <p>where <dfn id=wqname>wqname</dfn> is a <a href="http://dev.w3.org/csswg/css3-namespace/#css-qnames">CSS qualified - name</a> [[!CSSNAMESPACE]] and whose syntax is defined as: - - <pre> -wqname - : [ [ namespace_prefix? | '*' ] '|' ident ] - | ident - ;</pre> - <!-- TODO: Delete this syntax definition when Namespaces is updated to contain the wqname production --> - - <p>The <a href="#wqname"><i>wqname</i></a> argument represents an attribute - name. The computed value of the ‘<a href="#attr-value"><code + name</a> [[!CSSNAMESPACE]] that represents an attribute name. The computed + value of the ‘<a href="#attr-value"><code class=css>attr()</code></a>’ expression is the value of the attribute with that name on the element, according to the rules given below. <p>The ‘<code class=css><type></code>’ argument (which is - optional but must be present if the third argument is present) is a - keyword drawn from the list below that tells the UA how to interpret the - attribute value. If omitted, ‘<code class=css>string</code>’ - is implied. If the type is not valid for where the ‘<a - href="#attr-value"><code class=css>attr()</code></a>’ expression is - placed, the whole ‘<a href="#attr-value"><code - class=css>attr()</code></a>’ expression is invalid. + optional) is a keyword drawn from the list below that tells the UA how to + interpret the attribute value. If omitted, ‘<code + class=css>string</code>’ is implied. If the type is not valid for + where the ‘<a href="#attr-value"><code + class=css>attr()</code></a>’ expression is placed, the whole + ‘<a href="#attr-value"><code class=css>attr()</code></a>’ + expression is invalid. <p>The ‘<code class=css><value></code>’ argument (which is optional) is a CSS value which must be valid where the ‘<a @@ -1751,7 +1742,7 @@ } stock > * { display: block; - width: attr(length, em); /* default 0 */ + width: attr(length em); /* default 0 */ height: 1em; border: solid thin; margin: 0.5em; @@ -1767,9 +1758,9 @@ to handle replaced content and alternatives to unavailable, corrupted or unsupported content */ img { - content: replaced attr(src, url), attr(alt, string, none); - height: attr(height, px, auto); - width: attr(width, px, auto); + content: replaced attr(src url), attr(alt string, none); + height: attr(height px, auto); + width: attr(width px, auto); }</pre> </div> @@ -1779,13 +1770,13 @@ them—to be ignored:</p> <pre> -content: attr(title, color); /* 'content' doesn't accept colors */ +content: attr(title color); /* 'content' doesn't accept colors */ -content: attr(end-of-quote, string, inherit) close-quote; +content: attr(end-of-quote string, inherit) close-quote; /* the 'inherit' value is not allowed there, since the result would be 'inherit close-quote', which is invalid. */ -margin: attr(vertical, length) attr(horizontal, deg); +margin: attr(vertical length) attr(horizontal deg); /* deg units are not valid at that point */ <!-- font: attr(weight, integer) attr(size, length)/attr(height, Index: Overview.src.html =================================================================== RCS file: /sources/public/csswg/css3-values/Overview.src.html,v retrieving revision 1.163 retrieving revision 1.164 diff -u -d -r1.163 -r1.164 --- Overview.src.html 3 Mar 2012 00:10:11 -0000 1.163 +++ Overview.src.html 3 Mar 2012 01:11:43 -0000 1.164 @@ -1088,28 +1088,18 @@ <p>The new syntax for the ''attr()'' expression is:</p> - <pre>'attr(' <var>wqname</var> [ ',' <type> [ ',' <value> ]? ]? ')'</pre> + <pre>'attr(' <var>wqname</var> <type>? [ ',' <value> ]? ')'</pre> <p>where <dfn>wqname</dfn> is a <a href="http://dev.w3.org/csswg/css3-namespace/#css-qnames">CSS qualified name</a> - [[!CSSNAMESPACE]] and whose syntax is defined as:</p> - - <pre> -wqname - : [ [ namespace_prefix? | '*' ] '|' ident ] - | ident - ;</pre> - <!-- TODO: Delete this syntax definition when Namespaces is updated to contain the wqname production --> - - <p>The <i>wqname</i> argument represents an attribute name. The computed + [[!CSSNAMESPACE]] that represents an attribute name. The computed value of the ''attr()'' expression is the value of the attribute with that name on the element, according to the rules given below.</p> - <p>The ''<type>'' argument (which is optional but must be present if the - third argument is present) is a keyword drawn from the list below that tells - the UA how to interpret the attribute value. If omitted, ''string'' is - implied. If the type is not valid for where the ''attr()'' expression is - placed, the whole ''attr()'' expression is invalid.</p> + <p>The ''<type>'' argument (which is optional) is a keyword drawn from + the list below that tells the UA how to interpret the attribute value. + If omitted, ''string'' is implied. If the type is not valid for where the + ''attr()'' expression is placed, the whole ''attr()'' expression is invalid.</p> <p>The ''<value>'' argument (which is optional) is a CSS value which must be valid where the ''attr()'' expression is placed. It represents a fallback @@ -1213,7 +1203,7 @@ } stock > * { display: block; - width: attr(length, em); /* default 0 */ + width: attr(length em); /* default 0 */ height: 1em; border: solid thin; margin: 0.5em; @@ -1229,9 +1219,9 @@ to handle replaced content and alternatives to unavailable, corrupted or unsupported content */ img { - content: replaced attr(src, url), attr(alt, string, none); - height: attr(height, px, auto); - width: attr(width, px, auto); + content: replaced attr(src url), attr(alt string, none); + height: attr(height px, auto); + width: attr(width px, auto); }</pre> </div> @@ -1241,13 +1231,13 @@ this case all of them—to be ignored:</p> <pre> -content: attr(title, color); /* 'content' doesn't accept colors */ +content: attr(title color); /* 'content' doesn't accept colors */ -content: attr(end-of-quote, string, inherit) close-quote; +content: attr(end-of-quote string, inherit) close-quote; /* the 'inherit' value is not allowed there, since the result would be 'inherit close-quote', which is invalid. */ -margin: attr(vertical, length) attr(horizontal, deg); +margin: attr(vertical length) attr(horizontal deg); /* deg units are not valid at that point */ <!-- font: attr(weight, integer) attr(size, length)/attr(height,
Received on Saturday, 3 March 2012 01:11:47 UTC