[whatwg] <ol reversed> with start value and "underflow"
rolandsteiner at google.com
Tue Dec 13 21:15:48 PST 2011
Not involved in this, but out of curiosity: how would alphabetic lists, or
lists with roman numerals handled in this case?
On Tue, Dec 13, 2011 at 07:58, Ian Hickson <ian at hixie.ch> wrote:
> On Mon, 12 Dec 2011, Alexis Menard wrote:
> > Then come the question, what if I write :
> > <h3>Top 100</h3>
> > <ol reversed="reversed" start="100">
> > <li>False Dichotomy</li>
> > <li>Appeal to Ridicule</li>
> > <li>Begging the Question (Circular Logic)</li>
> > <!-- Items omitted here -->
> > <li value="3">Strawman</li>
> > <li>Bare Assertion Fallacy</li>
> > <li>Argumentum ad Ignorantiam</li>
> > <li>Test</li>
> > </ol>
> > What should be the actual number of "Test" when rendered?
> > and what if there are more items after "Test"? -1, -2,...?
> Yes. The spec says "Each subsequent item in the list has [...] the ordinal
> value of the previous item [...] minus one" (omitting spec text that
> doesn't apply here regarding the value="" attribute and the reversed=""
> attribute -- see the spec for precise rules).
> > The spec seems to say that it should stop a 1 but then what value I
> > should display for "Test"?
> Where does it suggest that you should stop at 1?
> Ian Hickson U+1047E )\._.,--....,'``. fL
> http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
> Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg