W3C home > Mailing lists > Public > public-css-testsuite@w3.org > April 2011

[RC6] list-style-020 seems incorrect (issue 94)

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Sat, 9 Apr 2011 13:28:09 -0700
Message-ID: <b8608af8b4b3d2820476c2e60da5a4f9.squirrel@cp3.shieldhost.com>
To: "fantasai" <fantasai.lists@inkedblade.net>
Cc: "Public CSS test suite mailing list" <public-css-testsuite@w3.org>



A value of 'none' within the 'list-style' property sets whichever of
'list-style-type' and 'list-style-image' are not otherwise specified to

line 31: .three { list-style: none square; }

So, it seems that such 'none' should then also set 'list-style-type'
sub-property to 'none'.

The CSS validator will also complain (albeit with a weird error message)
regarding line 31:


If the declaration { list-style: none square; } is supposed to be
considered invalid (therefore ignored), then .li {display: list-item;
list-style: disc;} prevails and a blue filled disc is rendered: this is
what Chrome 10 does.

I think there should be nothing displayed, *not* a blue square and *not*
a blue disc for :

line 54: <div class="li three outside"><span>blue square</span></div>

As I understand the spec, the line 31 declaration { list-style: none
square; } is supposed to reset 'list-style-image' to 'none' and make
'list-style-type' set to 'none' without being invalid. Therefore no
list-marker should be displayed. This is what Konqueror 4.6.2 does.

Am I missing something here?


Regarding .seven

    .seven { list-style: none url(support/swatch-red.png) none;
             list-style: url(support/swatch-red.png) none none;
             list-style: none none url(support/swatch-red.png);
             list-style: none square none;
             list-style: square none none;
             list-style: none none square;
             list-style: square url(support/swatch-red.png) none;
             list-style: url(support/swatch-red.png) none square;
             list-style: none square url(support/swatch-red.png);

all these declarations are invalid only and only because the
sub-property 'list-style-position' is set to 'none' which is invalid,

The .seven class is presumably testing the spec-sentence:
However, if both ['list-style-type' and 'list-style-image'] are
otherwise specified, the declaration is in error (and thus ignored).


Issue 94

    'none' creates ambiguity parsing 'list-style' shorthand


regards, Gérard
Contributions to the CSS 2.1 test suite:

CSS 2.1 Test suite RC6, March 23rd 2011

CSS 2.1 test suite contributors:
Received on Saturday, 9 April 2011 20:28:41 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:13:23 UTC