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: Percentage based value for 'min-width' contained by box with a negative 'width'</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#min-max-widths">
7 <meta name="flags" content="">
8 <meta name="assert" content="If the containing block's width is negative, the used value is zero.">
9 <style type="text/css">
10 #div1
11 {
12 position: relative;
13 width: 100px;
14 }
15 #div2
16 {
17 left: 120px;
18 position: absolute;
19 right: 120px;
20 width: auto;
21 }
22 #div3
23 {
24 background-color: red;
25 height: 1in;
26 min-width: 200%;
27 }
28 </style>
29 </head>
30 <body>
31 <p>Test passes if there is no red visible on the page.</p>
32 <div id="div1">
33 <div id="div2">
34 <div id="div3"></div>
35 </div>
36 </div>
37 </body>
38 </html>