block-step-size-establishes-independent-formatting-context.html (717B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <link rel="author" href="mailto:sammy.gill@apple.com"> 5 <link rel="help" href="https://drafts.csswg.org/css-rhythm/#block-step-size"> 6 <link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html"> 7 <meta name="assert" content="block-step-size values other than none on block level elements cause the box to establish an independent formatting context"> 8 <style> 9 div { 10 width: 50px; 11 height: 100px; 12 background-color: green; 13 } 14 .floating { 15 float: left; 16 } 17 .block-step-size { 18 block-step-size: 1px; 19 } 20 </style> 21 </head> 22 <body> 23 <p>Test passes if there is a filled green square.</p> 24 <div class="floating"></div> 25 <div class="block-step-size"></div> 26 </body> 27 </html>