W3C home > Mailing lists > Public > www-style@w3.org > January 2014

[css-lists] Interaction with <ol reversed>

From: Simon Sapin <simon.sapin@exyr.org>
Date: Tue, 21 Jan 2014 16:49:57 -0800
Message-ID: <52DF15B5.1060505@exyr.org>
To: www-style@w3.org

In its Sample style sheet for HTML, css-lists has rules to express 
<ol>ís 'start' attribute as well as <li>ís 'value' attribute.

It does not, however, express <ol>ís 'reversed' attribute. Part of it is:

   ol[reversed] > li {
     counter-increment: list-item -1,

The other part is that if the <ol> element does not have a start 
attribute (or the attribute value does not parse as an integer), 'start' 
should default to the number of child <li> elements. This can not be 
expressed purely in CSS, but should still be mentioned.


Simon Sapin
Received on Wednesday, 22 January 2014 00:50:22 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:38 UTC