inline-block-slice-7.html (1065B)
1 <!DOCTYPE html> 2 <!-- 3 Any copyright is dedicated to the Public Domain. 4 http://creativecommons.org/publicdomain/zero/1.0/ 5 --> 6 <html class="reftest-paged"> 7 <head> 8 <style> 9 @page { 10 size: 5in 3in; 11 margin: 0.5in; 12 } 13 @font-face { 14 font-family: Ahem; 15 src: url(../fonts/Ahem.ttf); 16 } 17 18 html,body { 19 color:black; background-color:white; font:20px/1 Ahem; padding:0; margin:0; 20 } 21 html { block-size: 1in; } 22 23 .ib { 24 display: inline-block; 25 inline-size: 2.5in; 26 block-size: 3in; 27 vertical-align: top; 28 border: 5px solid black; 29 } 30 .ib > div { 31 block-size: 3.25in; /* creates a bit of scrollable overflow on .ib */ 32 } 33 34 .after { 35 display: block; 36 inline-size: 2.5in; 37 block-size: 0.25in; 38 border: 5px dashed grey; 39 background-color: grey; 40 } 41 </style> 42 </head> 43 <body> 44 <!-- 45 -- Note that the correct rendering is that the grey block placed 46 -- immediately below the black bottom border. Our fragmentation 47 -- fallback mechanism can't handle this case correctly. 48 --> 49 X<div class="ib"><div></div></div>p 50 <div class="after"></div> 51 </body> 52 </html>