Unitless Lengths Test

The style declarations which apply to the text below are:

P.six {margin: 200;}
P.sixa {border-width: 200; border-style: solid;}
P.sixb {border-width: 50zu; border-style: solid;}
P.sixc {border-width: funny; border-style: solid;}
P.sixd {border-width: 200 px; border-style: solid;}
P.sixe {border-top-width: 200 px; border-style: solid;}
P.sixf {border-width: medium; border-style: solid;}

This paragraph should not have any extra spacing around it, because the margin does not have any units, and is therefore invalid.

This paragraph should have a medium-width border around it (the same as the next five paragraphs), because the border-width does not have any units, and is therefore invalid.

This paragraph should have a medium-width border around it (the same as the previous one and next four paragraphs), because the border-width units are invalid, and therefore the border-width should be ignored.

This paragraph should have a medium-width border around it (the same as the previous two paragraphs and next three), because the border-width is invalid.

This paragraph should have a medium-width border around it (the same as the previous three paragraphs and next two), because the border-width is invalid.

This paragraph should have a medium-width border around it (the same as the previous four paragraphs and next one), because the border-top-width is invalid.

This paragraph should have a medium-width border around it (the same as the previous five paragraphs).


Valid HTML 4.0!

(Back to CSS Testing Information, David Baron)

LDB, dbaron@dbaron.org