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: Solving over-constrained situation for block-level non-replaced elements in normal flow and direction is left-to-right</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#blockwidth">
7 <meta name="flags" content="">
8 <meta name="assert" content="When direction is left-to-right, margin-right is ignored in an over-constrained situation.">
9 <style type="text/css">
10 div
11 {
12 direction: ltr;
13 }
14 #div1
15 {
16 background: orange;
17 width: 100px;
18 }
19 div div
20 {
21 background-color: orange;
22 border-left: 10px solid orange;
23 border-right: 10px solid orange;
24 height: 30px;
25 margin-left: 10px;
26 margin-right: 10px;
27 padding-left: 10px;
28 padding-right: 10px;
29 width: 100px;
30 }
31 #div2
32 {
33 background-color: blue;
34 height: 30px;
35 position: absolute;
36 top: 82px;
37 width: 150px;
38 }
39 </style>
40 </head>
41 <body>
42 <p>Test passes if the orange and blue boxes below are the same width.</p>
43 <div id="div1">
44 <div></div>
45 </div>
46 <div id="div2"></div>
47 </body>
48 </html>