- From: Tab Atkins Jr.. via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 10 Oct 2011 21:28:25 +0000
- To: public-css-commits@w3.org
Update of /sources/public/csswg/css3-values In directory hutz:/tmp/cvs-serv15407 Modified Files: Overview.html Overview.src.html Log Message: Slight editorial rearranging of intro sentences for attr(). Added sentence about attr() on pseudo-elements, to resolve the issue about that. Index: Overview.html =================================================================== RCS file: /sources/public/csswg/css3-values/Overview.html,v retrieving revision 1.99 retrieving revision 1.100 diff -u -d -r1.99 -r1.100 --- Overview.html 10 Oct 2011 21:22:12 -0000 1.99 +++ Overview.html 10 Oct 2011 21:28:23 -0000 1.100 @@ -1474,24 +1474,23 @@ <h3 id=attr><span class=secno>9.3. </span> Attribute References: ‘<code class=css>attr()</code>’</h3> - <p class=issue>When attr is set on a pseudo-element, it should apply to the - originating element - <p>The ‘<code class=css>attr()</code>’ function returns the - value of an attribute on the element. + value of an attribute on the element for use as a value in a property. If + used on a pseudo-element, it returns the value of the attribute on the + pseudo-element's originating element. - <p>The ‘<code class=css>attr()</code>’ expression cannot return - everything, for example it cannot do counters, named strings, quotes, or - values such as ‘<code class=css>auto</code>’, ‘<code + <p>In CSS2.1 <a href="#CSS21" rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a>, + the ‘<code class=css>attr()</code>’ expression always returns + a string. In CSS3, the ‘<code class=css>attr()</code>’ + expression can return many different types. The ‘<code + class=css>attr()</code>’ expression cannot return everything, for + example it cannot do counters, named strings, quotes, or values such as + ‘<code class=css>auto</code>’, ‘<code class=css>nowrap</code>’, or ‘<code class=css>baseline</code>’. This is intentional, as the intent of the ‘<code class=css>attr()</code>’ expression is not to make it possible to describe a presentational language's formatting using CSS, - but to enable CSS to take semantic data into account. In CSS2.1 <a - href="#CSS21" rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a>, the - ‘<code class=css>attr()</code>’ expression always returns a - string. In CSS3, the ‘<code class=css>attr()</code>’ - expression can return many different types. + but to enable CSS to take semantic data into account. <p>The new syntax for the ‘<code class=css>attr()</code>’ expression is: Index: Overview.src.html =================================================================== RCS file: /sources/public/csswg/css3-values/Overview.src.html,v retrieving revision 1.102 retrieving revision 1.103 diff -u -d -r1.102 -r1.103 --- Overview.src.html 10 Oct 2011 21:22:12 -0000 1.102 +++ Overview.src.html 10 Oct 2011 21:28:23 -0000 1.103 @@ -1030,18 +1030,18 @@ <h3 id="attr"> Attribute References: ''attr()''</h3> - <p class=issue>When attr is set on a pseudo-element, it should apply to the originating element</p> - - <p>The ''attr()'' function returns the value of an attribute on the element.</p> + <p>The ''attr()'' function returns the value of an attribute on the element + for use as a value in a property. If used on a pseudo-element, it returns + the value of the attribute on the pseudo-element's originating element.</p> - <p>The ''attr()'' expression cannot return everything, for example it cannot + <p>In CSS2.1 [[!CSS21]], the ''attr()'' expression always returns a string. + In CSS3, the ''attr()'' expression can return many different types. The + ''attr()'' expression cannot return everything, for example it cannot do counters, named strings, quotes, or values such as ''auto'', ''nowrap'', or ''baseline''. This is intentional, as the intent of the ''attr()'' expression is not to make it possible to describe a presentational language's formatting using CSS, but to enable CSS - to take semantic data into account. In CSS2.1 [[!CSS21]], the ''attr()'' - expression always returns a string. In CSS3, the ''attr()'' expression can - return many different types. + to take semantic data into account.</p> <p>The new syntax for the ''attr()'' expression is:</p>
Received on Monday, 10 October 2011 21:28:30 UTC