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>
Fantasai,

http://test.csswg.org/suites/css2.1/20110323/html4/list-style-020.htm
 (RC6)

http://test.csswg.org/suites/css2.1/nightly-unstable/html4/list-style-020.htm

"
A value of 'none' within the 'list-style' property sets whichever of
'list-style-type' and 'list-style-image' are not otherwise specified to
'none'.
"
http://www.w3.org/TR/CSS21/generate.html#propdef-list-style


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:

http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Ftest.csswg.org%2Fsuites%2Fcss2.1%2F20110323%2Fhtml4%2Flist-style-020.htm&profile=css21&usermedium=all&warning=1&lang=en


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,
impossible.

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

URL
    http://lists.w3.org/Archives/Public/www-style/2008Dec/0156.html
Summary
    'none' creates ambiguity parsing 'list-style' shorthand

http://wiki.csswg.org/spec/css2.1#issue-94


regards, Gérard
-- 
Contributions to the CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

CSS 2.1 Test suite RC6, March 23rd 2011
http://test.csswg.org/suites/css2.1/20110323/html4/toc.html

CSS 2.1 test suite contributors:
http://test.csswg.org/source/contributors/
Received on Saturday, 9 April 2011 20:28:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 9 April 2011 20:28:47 GMT