display-flex-svg-overflow-default.html (586B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>display:flex on svg uses 0 as min size with default overflow</title> 4 <link rel="help" href="https://www.w3.org/TR/css-overflow-3/#valdef-overflow"> 5 <link rel="author" title="Khushal Sagar" href="mailto:khushalsagar@chromium.org"> 6 <link rel="match" href="display-flex-svg-overflow-default-ref.html"> 7 <style> 8 body { 9 background: lightblue; 10 } 11 div { 12 display: flex; 13 width: 100px; 14 height: 100px; 15 } 16 svg { 17 flex-grow: 1; 18 } 19 </style> 20 <div> 21 <svg> 22 <rect width="150" height="150" fill="green"></rect> 23 </svg> 24 </div>