W3C home > Mailing lists > Public > public-css-testsuite@w3.org > October 2009

microsoft/first-line-selector-011.xht

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 12 Oct 2009 14:40:45 -0700
Message-ID: <4AD3A25D.9080102@inkedblade.net>
To: "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>, Arron Eicholz <Arron.Eicholz@microsoft.com>
http://test.csswg.org/source/contributors/microsoft/submitted/Chapter_5/first-line-selector-011.xht

This test doesn't seem quite right. Try relative positioning
the span with position: relative; left: 10em; top: 3em; and
  you'll see what's happening: the green background is being
applied to either the line box itself or the anonymous inline
around the inline block, not to the inline-block. The test
should be changed to reflect this model somehow, otherwise
we'll have implementors trying to pass it by doing something
stupid.

I'd suggest testing the assertion given in the meta tag with
div:first-line { color: red; } and asserting for no red. Even
better would be something like this:

<style>
   span { display: inline-block; }
   div { background: white; color: white; }
   div:first-line { color: red; font-weight: bold; }
</style>

<div><span>FAIL<br/>FAIL</span></div>

~fantasai
Received on Monday, 12 October 2009 21:41:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 20 September 2010 17:52:00 GMT