Skip to content

Commit 90c884b

Browse files
committed
Updated the section on the computed value of 'content' on ::marker.
1 parent dfeccf2 commit 90c884b

1 file changed

Lines changed: 17 additions & 21 deletions

File tree

css3-lists/Overview.src.html

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -693,29 +693,25 @@ <h2 id=list-style-image>List Content: The 'list-style-image' property</h2>
693693

694694
<h2>List Content: Generating the computed value of the 'content' property</h2>
695695

696-
<p>If a ''::marker'' pseudo-element has its 'content' property set to normal, the
697-
following algorithm should be used to generate the computed value of the property.
698-
Note that there being a computed value of the 'content' property is not enough
699-
for the ''::marker'' pseudo-element to be rendered. See the section on the
700-
'list-style-position' property below.</p>
696+
<p>If a ''::marker'' pseudo-element has its 'content' property set to ''normal'', the
697+
following algorithm should be used to generate the computed value of the property.</p>
701698

702699
<ol>
703-
<li>If 'list-style-image' is not ''none'', and if the image is valid, then
704-
the content is the value of the 'list-style-image' property.</li>
705-
706-
<li>Otherwise, if the 'list-style-type' property is not ''none'', then
707-
the computed value of the 'content' property is ''counter(list-item, <b>&lt;list-style-type></b>)''
708-
followed by a string, where <b>&lt;list-style-type></b> is the computed value
709-
of the 'list-style-type' property, or the default style type for the list-item
710-
counter if the 'list-style-type' has the value 'normal', and the
711-
string is the suffix for the list style type in question (which may be empty).</li>
712-
713-
<li>Otherwise the computed value is ''inhibit''. (Note: This is not the same
714-
as the empty string, nor the same as ''none''.)</li>
715-
</ol>
700+
<li>If the computed value of 'list-style-image' is not ''none'', and if the
701+
image is valid, then the computed value of the 'content' property is the value
702+
of the 'list-style-image' property.</li>
703+
704+
<li>Otherwise, if the computed value of 'list-style-type' is a string, then
705+
the computed value of the 'content' property is that string.</li>
716706

717-
<p>Ths algorithm may be superseded by a more detailed algorithm given in the Generated and Replaced
718-
Content module, when it is released.</p>
707+
<li>Otherwise, if the computed value of 'list-style-type' is not ''none'', then
708+
the computed value of the 'content' property is ''counter(list-item, <b>&lt;counter-style></b>)'',
709+
where <b>&lt;counter-style></b> is the computed value of the 'list-style-type'
710+
property, followed by a string that is the suffix for the counter style in question
711+
(which may be empty).</li>
712+
713+
<li>Otherwise the computed value is ''none''.</li>
714+
</ol>
719715

720716
<div class="example">
721717
<p>Given the following style sheet:</p>
@@ -725,7 +721,7 @@ <h2>List Content: Generating the computed value of the 'content' property</h2>
725721
<pre>&lt;li&gt; List Item &lt;/li&gt;</pre>
726722
<p>The computed value of the 'content' property on the ''::marker''
727723
pseudo-element of the list item element is:</p>
728-
<pre>counter(list-item, decimal) "\002E"</pre>
724+
<pre>counter(list-item, decimal) "."</pre>
729725
</div>
730726

731727
<!-- ====================================================================== -->

0 commit comments

Comments
 (0)