1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: Margin-right applied to element with display table-footer-group</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#propdef-margin-right">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#margin-properties">
8 <meta name="flags" content="">
9 <meta name="assert" content="The 'margin-right' property does not apply to elements with a display of table-footer-group.">
10 <style type="text/css">
11 #wrapper
12 {
13 border-right: 10px solid blue;
14 }
15 #wrapper, #cell
16 {
17 height: 200px;
18 width: 200px;
19 }
20 #table
21 {
22 border-collapse: collapse;
23 display: table;
24 table-layout: fixed;
25 }
26 #test
27 {
28 display: table-footer-group;
29 margin-right: 50px;
30 }
31 #row
32 {
33 display: table-row;
34 }
35 #cell
36 {
37 border-right: 10px solid orange;
38 display: table-cell;
39 }
40 </style>
41 </head>
42 <body>
43 <p>Test passes if there is no space between the blue and orange lines below.</p>
44 <div id="wrapper">
45 <div id="table">
46 <div id="test">
47 <div id="row">
48 <div id="cell"></div>
49 </div>
50 </div>
51 </div>
52 </div>
53 </body>
54 </html>