1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
2 <!-- saved from url=(0063)http://bugzilla.mozilla.org/attachment.cgi?id=69028&action=view -->
3 <HTML><HEAD><TITLE>Collapsing Border Test Case</TITLE>
4 <META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
6 body { overflow: hidden; }
8 MARGIN-TOP: 1em; MARGIN-BOTTOM: 1em
11 BORDER-RIGHT: red 5px solid; BORDER-TOP: red 5px solid; BORDER-LEFT: red 5px solid; BORDER-BOTTOM: red 5px solid; BORDER-COLLAPSE: collapse; border-spacing: 5px
14 BORDER-RIGHT: green 4px solid; BORDER-TOP: green 4px solid; BORDER-LEFT: green 4px solid; BORDER-BOTTOM: green 4px solid
16 TABLE.test1 TD.cell3 {
17 BORDER-RIGHT: blue 6px solid; BORDER-TOP: blue 6px solid; BORDER-LEFT: blue 6px solid; BORDER-BOTTOM: blue 6px solid
20 BORDER-RIGHT: black 3px solid; BORDER-TOP: black 3px solid; BORDER-LEFT: black 3px solid; BORDER-BOTTOM: black 3px solid
23 BORDER-RIGHT: red 1px solid; PADDING-RIGHT: 1em; BORDER-TOP: red 1px solid; PADDING-LEFT: 1em; PADDING-BOTTOM: 1em; BORDER-LEFT: red 1px solid; PADDING-TOP: 1em; BORDER-BOTTOM: red 1px solid
25 TABLE.test2 TD.solid-blue {
26 BORDER-RIGHT: blue 5px dashed; BORDER-TOP: blue 5px dashed; BORDER-LEFT: blue 5px dashed; BORDER-BOTTOM: blue 5px dashed
28 TABLE.test2 TD.solid-green {
29 BORDER-RIGHT: green 5px solid; BORDER-TOP: green 5px solid; BORDER-LEFT: green 5px solid; BORDER-BOTTOM: green 5px solid
32 BORDER-RIGHT: yellow 5px solid; BORDER-TOP: yellow 5px solid; BORDER-LEFT: yellow 5px solid; BORDER-BOTTOM: yellow 5px solid; BORDER-COLLAPSE: collapse
35 BORDER-COLLAPSE: collapse
38 BORDER-TOP: black 2px solid
40 TABLE.test3 TR:unknown {
41 BORDER-TOP-STYLE: none
44 FONT-WEIGHT: bolder; WIDTH: 3em; TEXT-ALIGN: center
48 <META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
50 <P>Following table should have 6px solid blue border around cell 3, red 5px
51 solid border around the rest of table and green 4px solid border between cell 1
52 and cell 2. The red border should override the green border around the cells
53 because it's thicker and the blue border should override the red border for the
60 <TD class=cell3>Cell #3</TD></TR></TBODY></TABLE>
62 href="http://www.w3.org/TR/REC-CSS2/tables.html#collapsing-borders">17.6.2 The
63 collapsing border model</A> for following tests: </P>
76 <TD class=solid-blue>5</TD>
77 <TD class=solid-green>6</TD></TR>
89 <TD>15</TD></TR></TBODY></TABLE>
90 <P>This is an example rendering for the previous table from <A
91 href="../images/tbl-border-conflict.gif">http://www.w3.org/TR/REC-CSS2/images/tbl-border-conflict.gif</A>:
92 <BR><IMG alt="[Example rendering from w3.org]"
93 src="./images/tbl-border-conflict.gif"> </P>
94 <P>Following table should have 2px solid black line between rows. There should
95 be a total of two lines. There will be three lines if user agent doesn't support
96 <CODE>tr:first-child</CODE>. </P>
110 <TD>13</TD></TR></TBODY></TABLE></BODY></HTML>