CSS1 color test page

1 Valid Declarations

The first group of tests consists of valid declarations on the STYLE attribute. All text in section 1 should appear in black.

1.1 STYLE="color: black"

1.2 color: #000

1.3 STYLE="color: #000000"

1.4 STYLE="color: rgb(0, 0, 0)"

1.5 STYLE="color: rgb(0%, 0%, 0%)"

1.6 STYLE="color: rgb(-100%, 0%, 0%)"

2 Invalid declarations

This group of tests consists of invalid declarations that should be ignored by the formatter. All text in section 2 should be black.

2.1 STYLE="color: F00" ("F00" is not a legal color without a preceding "#")

2.2 STYLE="color: '#F00'" (color values cannot be quoted)

2.3 STYLE="color: #00F0" (there are four color digits -- only three and six are legal)

2.4 STYLE="color: #0F" (there are two color digits -- only three and six are legal)

2.5 STYLE="color: bar" ("bar" is not a legal color name)

2.6 STYLE="color: 'red'" (color names are keywords that can't be quoted)

2.7 STYLE='color: "blue"' (color names are keywords that can't be quoted)

3 Color names

CSS1 has the same list of color names as HTML 3.2 does. The text below consists of SPAN elements with valid delclarations setting the color of the text. The text below should therefore appear corresponding to the color names:

aqua black blue fuchsia gray green lime maroon navy olive purple red silver teal white yellow

4 Invalid color names

The color names below are picked from a list commonly supported by Web browers. However, these are not part of the CSS1 specification and the text should appear in black.

aliceblue aquamarine azure

[Should we add these to a forthcoming specification?]


howcome 970622