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-caption</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 applies to elements with a display of table-caption.">
10 <style type="text/css">
11 div
12 {
13 direction: rtl;
14 }
15 #wrapper
16 {
17 border-right: 10px solid blue;
18 }
19 #wrapper, #test
20 {
21 height: 200px;
22 width: 200px;
23 }
24 #test
25 {
26 border-right: 10px solid orange;
27 display: table-caption;
28 margin-right: 50px;
29 }
30 #table
31 {
32 border-collapse: collapse;
33 display: table;
34 }
35 #row
36 {
37 display: table-row;
38 }
39 #cell
40 {
41 display: table-cell;
42 }
43 </style>
44 </head>
45 <body>
46 <p>Test passes if there is space between the blue and orange lines below.</p>
47 <div id="wrapper">
48 <div id="table">
49 <div id="test"></div>
50 <div id="row">
51 <div id="cell"></div>
52 </div>
53 </div>
54 </div>
55 </body>
56 </html>