flex-child-percent-basis-resize-1.html (1329B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>Testcase, bug 1584018</title> 4 <link rel="author" title="L. David Baron" href="https://dbaron.org/"> 5 <link rel="author" title="Mozilla" href="https://mozilla.org"> 6 <link rel="help" href="https://drafts.csswg.org/css-flexbox"> 7 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1584018"> 8 <link rel="match" href="flex-child-percent-basis-resize-1-ref.html"> 9 10 <style> 11 .flex-container { 12 display: flex; 13 flex-direction: row; 14 width: 100px; 15 } 16 17 .flex-item { 18 flex: 1 0 auto; 19 } 20 21 .scroll-outer { 22 overflow:hidden; 23 /* this combination is important */ 24 height: 100%; 25 max-height: 100px; 26 } 27 28 .scroll-inner { 29 overflow:scroll; 30 height:100%; 31 } 32 33 </style> 34 35 <div class="flex-container"> 36 <div class="flex-item"> 37 <div class="scroll-outer"> 38 <div class="scroll-inner"> 39 <div>0</div> 40 <div>1</div> 41 <div>2</div> 42 <div>3</div> 43 <div>4</div> 44 <div>5</div> 45 <div>6</div> 46 <div>7</div> 47 <div>8</div> 48 <div>9</div> 49 <div>0</div> 50 <div>1</div> 51 <div>2</div> 52 <div>3</div> 53 <div>4</div> 54 <div>5</div> 55 <div>6</div> 56 <div>7</div> 57 <div>8</div> 58 <div>9</div> 59 </div> 60 </div> 61 </div> 62 </div>