CSS2 Test Suite: 8.5.1 border-left-width

[index page] [section] [Previous] [Next] [Specification]

The style declarations contained within this page:

.test {background-color: silver; border-style: solid; border-width: 0;}
.cl1 {border-left-width: thin;}
.cl2 {border-left-width: medium;}
.cl3 {border-left-width: thick;}
.cl4 {border-left-width: 5px;}
.cl5 {border-left-width: 0;}
.cl6 {border-left-width: -5px;}


[test] This 'p' element should have no border applied to it, as it has been given a zero-width overall border (this helps keep the following tests more clear).

[test cl1] This 'p' element should have a thin left border.

[test cl2] This 'p' element should have a medium left border.

[test cl3] This 'p' element should have a thick left border.

[test cl4] This 'p' element should have a 5px left border.

[test cl5] This 'p' element should have no left border.

[test cl6] This 'p' element should have no left border, as negative border widths are not permitted.

[test] This 'p' element contains a 'span' element with a class of 'test cl4' that should have a 5px left border. If there is [test cl4]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.


[index page] [section] [Previous] [Next] [Specification]