inline-formatting-context-022.xht (1567B)
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: Inline boxes that are split and the margin, border, padding effect</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-04-04 --> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-formatting" /> 8 <link rel="match" href="inline-formatting-context-022-ref.xht" /> 9 10 <meta name="flags" content="ahem image" /> 11 <meta name="assert" content="Margins, borders and padding have no visual effect when inline boxes are split." /> 12 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 13 <style type="text/css"> 14 div 15 { 16 background: url('support/inline-formatting-context-022.png') no-repeat 0 -1.5em; 17 color: blue; 18 font: 15pt/1em Ahem; 19 margin-top: 2em; 20 height: 5em; 21 width: 6.5em; 22 } 23 span 24 { 25 margin: 1em 0; 26 padding: 1em; 27 border: 0.5em solid blue; 28 } 29 </style> 30 </head> 31 <body> 32 <p>Test passes if there is <strong>no red</strong>.</p> 33 <div> 34 <span>XXXXX XXXXX</span> 35 </div> 36 </body> 37 </html>