W3C home > Mailing lists > Public > public-css-testsuite@w3.org > June 2013

[CSS2] first-line-selector-011.htm

From: Masataka Yakura <myakura.web@gmail.com>
Date: Wed, 5 Jun 2013 15:50:17 +0900
Message-ID: <CANJXhd1UfawUdYGgjS-64PqQQBJwMP5t67V9+j6wAjj7N0Vr_g@mail.gmail.com>
To: public-css-testsuite@w3.org
Hello,

Looking at first-line-selector-011 I get confused.
http://test.csswg.org/suites/css2.1/latest//first-line-selector-011.htm<http://test.csswg.org/suites/css2.1/latest/html4/first-line-selector-011.htm>

The spec says "The first line of an inline-block cannot be the first
formatted line of an ancestor element", so the first "Test" in the <span>
element cannot be the first formatted line because it has `display: inline-
block` set. Hence, div:first-line { color: green } does not apply to the
<span> and it should show red.

However, the test says it "passes if there is no red visible on the page."
That's wrong, isn't it? It should either say "there is no green visible",
or switch the colors in the stylesheet.

Why I'm confused is that both Gecko and Presto "passes" the test. They show
green. Which one is wrong; those two engines, or the spec?

Best regards,
-- 
Masataka Yakura
<myakura.web@gmail.com>
Received on Wednesday, 5 June 2013 06:51:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:27:00 UTC