flow-tolerance-row-004.html (1100B)
1 <!DOCTYPE HTML> 2 <html><head> 3 <meta charset="utf-8"> 4 <title>CSS Grid Test: Grid Lanes layout with flow-tolerance: infinite (row direction)</title> 5 <link rel="author" title="Apple Inc."> 6 <link rel="help" href="https://drafts.csswg.org/css-grid-3/#placement-tolerance"> 7 <link rel="match" href="flow-tolerance-row-004-ref.html"> 8 <style> 9 html,body { 10 color:black; background-color:white; font:16px/1 monospace; padding:0; margin:0; 11 } 12 13 grid { 14 display: inline-grid-lanes; 15 grid-lanes-direction: row; 16 grid-auto-flow: column; 17 gap: 10px; 18 grid-template-rows: repeat(2, 100px); 19 flow-tolerance: infinite; /* Always place in order */ 20 color: #444; 21 border: 1px solid; 22 padding: 2px; 23 } 24 25 item { 26 background-color: #444; 27 color: #fff; 28 padding: 10px; 29 margin: 3px; 30 border: 2px solid blue; 31 } 32 </style> 33 </head> 34 <body> 35 36 <grid> 37 <item style="width: 100px">1</item> 38 <item style="width: 50px">2</item> 39 <item style="width: 50px">3</item> 40 <item style="width: 100px">4</item> 41 </grid> 42 43 </body> 44 </html>