break-nested-float-in-flex-item-002-print.html (1317B)
1 <!DOCTYPE html> 2 <!-- Any copyright is dedicated to the Public Domain. 3 http://creativecommons.org/publicdomain/zero/1.0/ --> 4 <html> 5 <meta charset="utf-8"> 6 <title>CSS Flexbox Test: Test for pagination of a nested float element with clearance in a flex item in a printing context</title> 7 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> 8 <link rel="author" title="Mozilla" href="http://www.mozilla.org/"> 9 <link rel="help" href="https://drafts.csswg.org/css-break/#possible-breaks"> 10 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1559961"> 11 <link rel="match" href="break-nested-float-in-flex-item-print-ref.html"> 12 13 <style> 14 @page { size:5in 3in; margin:0.5in; } 15 16 :root { 17 print-color-adjust: exact; 18 } 19 20 html, body { 21 margin: 0; 22 } 23 #flex { 24 display: flex; 25 flex-wrap: nowrap; 26 flex-direction: column; 27 } 28 #target { 29 float: left; 30 background: green; 31 width: 2in; 32 height: 6in; /* Expected to cover 3 pages. */ 33 } 34 </style> 35 36 <body> 37 <div id="flex"> 38 <div> 39 <div> 40 <div> 41 <!-- target needs to be deeply nested under a flex item. --> 42 <div id="target"></div> 43 <div style="clear:both"></div> 44 </div> 45 </div> 46 </div> 47 </div> 48 </body> 49 </html>