Background color white in t0804-c5508-ipadn-b-01-f-a.xht

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Background color white in t0804-c5508-ipadn-b-01-f-a.xht

Bert Bos

It seems there is a bug in
http://www.w3.org/Style/CSS/Test/CSS2.1/20041125/t0804-c5507-ipadn-r-04-b-ag.htm 
and
http://www.w3.org/Style/CSS/Test/CSS2.1/20041125/t0804-c5508-ipadn-b-01-f-a.htm

Both seem to assume that the white parts of the text are invisible, but
if you run the test in a browser that has a different background color
than white, they aren't.

The first test says there should be a green bar, but, in fact, the bar
is green and white. The second test says the two bars should be
identical, but in fact, one of the two is longer than the other,
because it has a white square attached to one end.

The fix to the latter might be to use a transparent image instead of a
white one, but both can also be fixed by adding an explicit background,
e.g.

    body {background: white; color: black}



Bert

PS. Credit for finding the bug goes to Cedric Kiss.

--
  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos                               W3C/ERCIM
  [hidden email]                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France

Reply | Threaded
Open this post in threaded view
|

Re: Background color white in t0804-c5508-ipadn-b-01-f-a.xht

Anne van Kesteren-2

On Mon, 02 Oct 2006 14:46:25 +0200, Bert Bos <[hidden email]> wrote:
> Both seem to assume that the white parts of the text are invisible, but
> if you run the test in a browser that has a different background color
> than white, they aren't.

You have to make some assumptions in tests.


--
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>