block-step-size-none-does-not-establish-block-formatting-context.html (772B)
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.xht"> 7 <meta name="assert" content="block-step-size none should not establish a block formatting context for the block box"> 8 <style> 9 div { 10 width: 100px; 11 height: 100px; 12 background-color: green; 13 } 14 .floating { 15 position: relative; 16 z-index: -1; 17 float: left; 18 background-color: red; 19 } 20 .block-step-size { 21 block-step-size: none; 22 } 23 </style> 24 </head> 25 <body> 26 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 27 <div class="floating"></div> 28 <div class="block-step-size"></div> 29 </body> 30 </html>