CSS1 Test Suite: 5.3.2 background-color


[Previous] [Next] [Section] [Contents] [Specification]
Last Updated: 11 May 1998

The style declarations which apply to the text below are:

P {background-color: green;}
.one {background-color: lime;}
.two {background-color: transparent;}


This sentence should be backed in green.

This sentence should be backed in lime (light green).

This sentence should be backed in green, and the last word in this sentence should also have a green background. This is because the background color of the parent element (the paragraph) should "shine through" the SPANned word "sentence," which was set to transparent. If the document background is visible, the browser is in error.

This sentence should allow the document background to "shine through." There should be no green backgrounds here!

This sentence should be backed in green.

This sentence should be backed in lime (light green).

This sentence should be backed in green, and the last word in this sentence should also have a green background. This is because the background color of the parent element (the paragraph) should "shine through" the SPANned word "sentence," which was set to transparent. If the document background is visible, the browser is in error.

This sentence should allow the document background to "shine through." There should be no green backgrounds here!


[Previous] [Next] [Section] [Contents] [Specification]