Re: text-decoration-087

Le Mer 26 janvier 2011 12:51, L. David Baron a écrit :
> We were just discussing this test:
> http://test.csswg.org/suites/css2.1/20110111/html4/text-decoration-087.htm
>
> The test is currently incorrect; the:
>   test
>   test
>   test
> inline-block should not be underlined.

"images and inline blocks must not be underlined."
http://www.w3.org/TR/CSS21/text.html#lining-striking-props

but

"The baseline of an 'inline-block' is the baseline of its last line box
in the normal flow"
http://www.w3.org/TR/CSS21/visudet.html#leading
so the 3rd "test" word in that inline-block must look as if it is
underlined

>
> However, once the test assertion is fixed,

The test should use distinguishible words apart from each other and then
the expected results should be much easier to describe.

Example given:

Current code
------------

  <div>
   <span> Test </span>
   <span class="inline-block"> test test test </span>
   <span> test </span>

   <span class="up"> test test </span>
   <span> test. </span>
  </div>


Proposed replacement
--------------------

<p> There should only be one solid orange line under the words "This
test has passed.". The quadruple uppercased letter words must not be
underlined.</p>

  <div>
   <span> This </span>
   <span class="inline-block"> WWWW XXXX test </span>
   <span> has </span>

   <span class="up"> YYYY ZZZZ </span>
   <span> passed. </span>
  </div>


> we may not have two
> passes,

Chrome 8.0.552.237 and Konqueror 4.5.5 currently pass
http://test.csswg.org/suites/css2.1/20110111/html4/text-decoration-087.htm
Does that count as 2 passes? They are different rendering engines.

Gérard
-- 
Contributions to the CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

CSS 2.1 test suite (RC5; January 11th 2011):
http://test.csswg.org/suites/css2.1/20110111/html4/toc.html

CSS 2.1 test suite contributors:
http://test.csswg.org/source/contributors/

Received on Wednesday, 26 January 2011 21:26:27 UTC