c5504-imrgn-l-005.xht (2470B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: margin-left</title> 5 <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html"/> 6 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 7 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-30 --> 8 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#margin-left"/> 9 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#margin-properties" title="8.3 Margin properties: 'margin-top', 'margin-right', 'margin-bottom', 'margin-left', and 'margin'"/> 10 <link rel="match" href="c5504-imrgn-l-005-ref.xht" /> 11 12 <meta name="flags" content="ahem image" /> 13 14 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 15 <style type="text/css"><![CDATA[ 16 div { font: 15px/1 Ahem; margin: 1em; } 17 .six { width: 13em; } 18 .six p { background: yellow; color: lime; } 19 .six span { margin-left: -4em; background: blue; color: orange; } 20 ]]></style> 21 </head> 22 <body> 23 <p>The following two bars should be identical:</p> 24 <div class="six"> 25 <p>xx xx xx <span>xx xx </span> xx</p> 26 </div> 27 <div> 28 <img src="support/swatch-lime.png" alt="Image download support must be enabled" 29 /><img src="support/swatch-lime.png" alt="Image download support must be enabled" 30 /><img src="support/swatch-yellow.png" alt="Image download support must be enabled" 31 /><img src="support/swatch-lime.png" alt="Image download support must be enabled" 32 /><img src="support/swatch-lime.png" alt="Image download support must be enabled" 33 /><img src="support/swatch-orange.png" alt="Image download support must be enabled" 34 /><img src="support/swatch-orange.png" alt="Image download support must be enabled" 35 /><img src="support/swatch-blue.png" alt="Image download support must be enabled" 36 /><img src="support/swatch-orange.png" alt="Image download support must be enabled" 37 /><img src="support/swatch-orange.png" alt="Image download support must be enabled" 38 /><img src="support/swatch-blue.png" alt="Image download support must be enabled" 39 /><img src="support/swatch-lime.png" alt="Image download support must be enabled" 40 /><img src="support/swatch-lime.png" alt="Image download support must be enabled"/> 41 </div> 42 </body> 43 </html>