- From: Tab Atkins Jr.. via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 10 Nov 2011 22:29:20 +0000
- To: public-css-commits@w3.org
Update of /sources/public/csswg/css-variables In directory hutz:/tmp/cvs-serv24438 Modified Files: Overview.html Overview.src.html Log Message: Editorial tweak of an example. Index: Overview.html =================================================================== RCS file: /sources/public/csswg/css-variables/Overview.html,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- Overview.html 10 Nov 2011 22:27:54 -0000 1.25 +++ Overview.html 10 Nov 2011 22:29:18 -0000 1.26 @@ -337,8 +337,8 @@ <p>The preceding rule is equivalent to writing ‘<code class=css>background-color: #06c;</code>’, except that the variable name makes the origin of the color clearer, and if ‘<code - class=css>data(header-color)</code>’ is used elsewhere in the - stylesheet, all of the uses can be updated at once by changing the + class=css>data(header-color)</code>’ is used on other elements in + the document, all of the uses can be updated at once by changing the ‘<code class=property>data-header-color</code>’ property on the root element.</p> </div> Index: Overview.src.html =================================================================== RCS file: /sources/public/csswg/css-variables/Overview.src.html,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- Overview.src.html 10 Nov 2011 22:27:54 -0000 1.24 +++ Overview.src.html 10 Nov 2011 22:29:18 -0000 1.25 @@ -141,7 +141,7 @@ <pre>h1 { background-color: data(header-color); }</pre> - <p>The preceding rule is equivalent to writing ''background-color: #06c;'', except that the variable name makes the origin of the color clearer, and if ''data(header-color)'' is used elsewhere in the stylesheet, all of the uses can be updated at once by changing the 'data-header-color' property on the root element.</p> + <p>The preceding rule is equivalent to writing ''background-color: #06c;'', except that the variable name makes the origin of the color clearer, and if ''data(header-color)'' is used on other elements in the document, all of the uses can be updated at once by changing the 'data-header-color' property on the root element.</p> </div> <p>Data properties are ordinary properties, so they can be declared on any element, are resolved with the normal inheritance and cascade rules, can be made conditional with ''@media'' and other conditional rules, can be used in HTML's <code>style</code> attribute, can be read or set using the CSSOM, etc..</p>
Received on Thursday, 10 November 2011 22:29:23 UTC