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

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

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Wed, 5 Jun 2013 11:43:47 -0400
Message-ID: <d4b071508ef97733c1a6999c6f4525b1.squirrel@ed-sh-cp3.entirelydigital.com>
To: "Masataka Yakura" <myakura.web@gmail.com>
Cc: "Public CSS Test suite mailing list" <public-css-testsuite@w3.org>

Le Mer 5 juin 2013 2:50, Masataka Yakura a écrit :
> 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>



On the same topic, there is also



> 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

I'll try to explain.

    This value causes an element to generate an inline-level block
container. The inside of an inline-block is formatted as a block
box, and the element itself is formatted as an atomic inline-level

The inline-block itself (as a whole) participates in the inline
formatting context. But its content, its inside creates a block
formatting context, its inside contains block elements.

I strongly believe that the current first-line-selector-011.htm test is
not best coded to verify the purpose of the test. I believe


is better. We've discussed before the sort of minimal code for
inline-blocks (realistically designed) and it should be something like:


I also checked



and this time the test seems incorrect; I think such test can not fail.

I will propose


as a replacement. Firefox 21 and Opera 12.15 fails this test while they
both pass

I also note that inline-table versus applicability of first-line
selector has not been tested.

Contributions to the CSS 2.1 test suite:

CSS 2.1 Test suite RC6, March 23rd 2011:

CSS 2.1 test suite harness:

Contributing to to CSS 2.1 test suite:
Received on Wednesday, 5 June 2013 15:44:22 UTC

This archive was generated by hypermail 2.4.0 : Friday, 20 January 2023 19:58:19 UTC