contain-layout-formatting-context-margin-001-ref.html (696B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Reftest Test</title> 6 <link rel="author" title="Kyle Zentner" href="mailto:zentner.kyle@gmail.com"> 7 <link rel="author" title="Morgan Rae Reschenberg" href="mailto:mreschenberg@berkeley.edu"> 8 <style> 9 #a { 10 background: blue; 11 margin: 10px; 12 width: 50px; 13 height: 50px; 14 } 15 #b { 16 width: 50px; 17 height: 40px; 18 background: green; 19 } 20 #b-padding { 21 height: 10px; 22 } 23 #c { 24 width: 50px; 25 height: 10px; 26 background: lightblue; 27 } 28 </style> 29 </head> 30 <body> 31 <div id="a"> 32 <div id="b-padding"></div> 33 <div id="b"></div> 34 <div id="c"></div> 35 </div> 36 </body> 37 </html>