Handling of non-CSS presentational hints - Author stylesheet

The CSS2 spec says that non-css presentational hints should be “translated to the corresponding CSS rules with specificity equal to zero. The rules are assumed to be at the start of the author style sheet and may be overridden by subsequent style sheet rules.” This test will test the treatment of the FONT element, the ALIGN attribute, and colors specified on BODY (including link colors).

The first test tests behavior with an author stylesheet, and the second test tests behavior with a user stylesheet.

The body of this document should have no background image, a yellow background, black text, and unvisited links should be blue, visited links should be purple, and active links (click on one, but don't use the unvisited one) should be red.

This should be in a sans-serif font because author CSS should override the FACE.

This should be in Times, because the font does not inherit from its parent.

This should be in sans-serif, because the font does not inherit from its parent.

This should be in a monospace font because author CSS should override the FACE.

This should be in Times, because the font does not inherit from its parent.

This should be in monospace, because the font does not inherit from its parent.

This should be in a sans-serif font.
This is preformatted text, and should be the UA default for PRE.
This should also be sans-serif.
This should be in a sans-serif font due to a FONT FACE. This really is illegal HTML for a FONT FACE to span a block-level element, but people do it anyway.
This is preformatted text, and should be the UA default for PRE.
The last word of this preformatted sentence should be bold.
This table should float left.
This table should float right.
This table should float left.
This table should float right.
This table should float left.
This table should float right.

This font should be normal size.


(Back to CSS Testing Information, David Baron)

LDB, dbaron@dbaron.org