The style declarations contained within this page:
.test {background-color: silver; border-width: 5px; border-color: #753;} .cl1 {border-top-style: solid;} .cl2 {border-top-style: dotted;} .cl3 {border-top-style: dashed;} .cl4 {border-top-style: double;} .cl5 {border-top-style: groove;} .cl6 {border-top-style: ridge;} .cl7 {border-top-style: inset;} .cl8 {border-top-style: outset;}
[test] This 'p' element should have no border applied to it, because its border style defaults to none. The borders of 'test' elements in this test should be 5 pixels wide, and the color should be #753.
[test cl1] This 'p' element should have a solid top border.
[test cl2] This 'p' element should have a dotted top border.
[test cl3] This 'p' element should have a dashed top border.
[test cl4] This 'p' element should have a double top border.
[test cl5] This 'p' element should have a grooved top border.
[test cl6] This 'p' element should have a ridged top border.
[test cl7] This 'p' element should have an inset top border.
[test cl8] This 'p' element should have an outset top border.
[test] This 'p' element contains a 'span' element with a class of 'cl1' that should have a solid top text-colored border. If there is [cl1]any increase of line separation in the 'p' element due to the border on the 'span' element, the test has been failed; borders do not affect the height of lines. However, the border may extend into or overlap other lines of text.