You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css3-lists/Overview.src.html
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1551,9 +1551,9 @@ <h2 id='symbols-function'>
1551
1551
1552
1552
<p>The previous chapter specified a way to define custom counter styles. However, counter styles are sometimes used only once in a stylesheet, and defining a full ''@counter-style'' rule can be overkill for this case (not to mention the possibility of unintentional name collisions). To address this case, the ''symbols()'' function provides a simple way to define an anonymous counter style as an inline value. It does not provide the full feature-set of the ''@counter-style'' rule, but provides a sufficient subset to still be useful. The syntax of the ''symbols()'' rule is:</p>
<p>Where <symbols> is a valid value for the 'symbols' descriptor in a ''@counter-style'' rule, and <type> is one of the following keywords: ''repeating'', ''numeric'', ''alphabetic'', ''symbolic'', or ''non-repeating''.</p>
1556
+
<p>Where <type> is one of the following keywords: ''repeating'', ''numeric'', ''alphabetic'', ''symbolic'', or ''non-repeating''.</p>
1557
1557
1558
1558
<p>The ''symbols()'' function defines an anonymous counter style with no <ititle="counter-name">name</i>, a <ititle="counter-prefix">prefix</i> and <ititle="counter-suffix">suffix</i> of ''""'' (the empty string), a <ititle="counter-lower-bound">lower bound</i> of negative infinity, an <ititle="counter-upper-bound">upper bound</i> of infinity, an <ititle="counter-fallback">fallback style</i> of ''decimal'', and a <ititle="counter-negative">negative sign</i> of "\2D" ("-" hyphen-minus). The counter style's <ititle="counter-algorithm">algorithm</i> is constructed by consulting the previous chapter using the provided type - or ''symbolic'' if the type was omitted - and the provided <symbols> as the value of the 'symbols' property.</p>
1559
1559
@@ -1575,7 +1575,7 @@ <h2 id='symbols-function'>
1575
1575
1576
1576
<p>On the other hand, specifying the type of counter, like so:</p>
1577
1577
1578
-
<pre>ol { list-style: symbols("*" "\2020" "\2021" "\A7" as repeating); }</pre>
<pclass='note'>Note that the ''symbols()'' function only allows strings and images, while the 'symbols' descriptor of a ''@counter-style'' rule also allows identifiers.</p>
0 commit comments