padding-left-047.xht (1813B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Padding-left using millimeters with a minimum plus one value, 1mm</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-08-25 --> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#propdef-padding-left" /> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#padding-properties" /> 9 <link rel="match" href="padding-left-047-ref.xht"/> 10 <meta name="assert" content="The 'padding-left' property handles a minimum plus one length value in millimeters." /> 11 <style type="text/css"> 12 div 13 { 14 height: 50px; 15 width: 0; 16 } 17 .parent1 18 { 19 background: red; 20 min-width: 3px 21 } 22 .test1, .test2 23 { 24 padding-left: 1mm; 25 } 26 .test1 27 { 28 background: green; 29 } 30 .test2 31 { 32 background: red; 33 } 34 .child1 35 { 36 background: green; 37 left: -4px; 38 position: relative; 39 width: 4px; 40 } 41 </style> 42 </head> 43 <body> 44 <p>Test passes if there is <strong>no red</strong>.</p> 45 <div class="parent1"> 46 <div class="test1"></div> 47 </div> 48 <div class="test2"> 49 <div class="child1"></div> 50 </div> 51 </body> 52 </html>