microsoft/first-line-selector-011.xht

View: New views
1 Messages — Rating Filter:   Alert me  

microsoft/first-line-selector-011.xht

by fantasai :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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