block-fit-content-as-initial.html (540B)
1 <!DOCTYPE html> 2 <title>CSS Test: Test `fit-content` for block axis behaves the same as the initial value</title> 3 <link rel="match" href="block-fit-content-as-initial-ref.html"> 4 <link rel="help" href="https://www.w3.org/TR/css-sizing-3/#valdef-width-fit-content-length-percentage"> 5 <link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org"> 6 <style> 7 .parent { 8 height: fit-content; 9 } 10 .child { 11 max-height: 100%; 12 } 13 </style> 14 <body> 15 <div class='parent'> 16 <img class='child' src='../support/60x60-green.png'> 17 </div> 18 </body>