svg-no-natural-size-grandchild.html (614B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1217941"> 3 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 4 <meta name="assert" content="The flex-item shouldn't have a zero max content size."> 5 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 6 <div style="display: flex; align-items: center; width: 100px; height: 100px; background: red;"> 7 <div style="line-height: 0;"> 8 <svg height="100%" width="100%" viewBox="0 0 1 1"> 9 <rect height="100%" width="100%" fill="green"></rect> 10 </svg> 11 </div> 12 </div>