- From: Tab Atkins Jr.. via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 03 Feb 2011 01:42:45 +0000
- To: public-css-commits@w3.org
Update of /sources/public/csswg/css3-lists In directory hutz:/tmp/cvs-serv21134 Modified Files: Overview.src.html Log Message: Updated the section on the computed value of 'content' on ::marker. Index: Overview.src.html =================================================================== RCS file: /sources/public/csswg/css3-lists/Overview.src.html,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- Overview.src.html 3 Feb 2011 01:06:01 -0000 1.20 +++ Overview.src.html 3 Feb 2011 01:42:43 -0000 1.21 @@ -693,29 +693,25 @@ <h2>List Content: Generating the computed value of the 'content' property</h2> -<p>If a ''::marker'' pseudo-element has its 'content' property set to normal, the -following algorithm should be used to generate the computed value of the property. -Note that there being a computed value of the 'content' property is not enough -for the ''::marker'' pseudo-element to be rendered. See the section on the -'list-style-position' property below.</p> +<p>If a ''::marker'' pseudo-element has its 'content' property set to ''normal'', the +following algorithm should be used to generate the computed value of the property.</p> <ol> - <li>If 'list-style-image' is not ''none'', and if the image is valid, then - the content is the value of the 'list-style-image' property.</li> + <li>If the computed value of 'list-style-image' is not ''none'', and if the + image is valid, then the computed value of the 'content' property is the value + of the 'list-style-image' property.</li> - <li>Otherwise, if the 'list-style-type' property is not ''none'', then - the computed value of the 'content' property is ''counter(list-item, <b><list-style-type></b>)'' - followed by a string, where <b><list-style-type></b> is the computed value - of the 'list-style-type' property, or the default style type for the list-item - counter if the 'list-style-type' has the value 'normal', and the - string is the suffix for the list style type in question (which may be empty).</li> + <li>Otherwise, if the computed value of 'list-style-type' is a string, then + the computed value of the 'content' property is that string.</li> - <li>Otherwise the computed value is ''inhibit''. (Note: This is not the same - as the empty string, nor the same as ''none''.)</li> -</ol> + <li>Otherwise, if the computed value of 'list-style-type' is not ''none'', then + the computed value of the 'content' property is ''counter(list-item, <b><counter-style></b>)'', + where <b><counter-style></b> is the computed value of the 'list-style-type' + property, followed by a string that is the suffix for the counter style in question + (which may be empty).</li> -<p>Ths algorithm may be superseded by a more detailed algorithm given in the Generated and Replaced -Content module, when it is released.</p> + <li>Otherwise the computed value is ''none''.</li> +</ol> <div class="example"> <p>Given the following style sheet:</p> @@ -725,7 +721,7 @@ <pre><li> List Item </li></pre> <p>The computed value of the 'content' property on the ''::marker'' pseudo-element of the list item element is:</p> - <pre>counter(list-item, decimal) "\002E"</pre> + <pre>counter(list-item, decimal) "."</pre> </div> <!-- ====================================================================== -->
Received on Thursday, 3 February 2011 01:42:47 UTC