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

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