Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-sizing/stretch/flex-item-height-003.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
<script src="/resources/check-layout-th.js"></script>
<meta name="assert" content="a replaced element with height:stretch resolves to the flex container definite cross size, not its intrinsic height">
<body onload="checkLayout('[data-expected-client-height]')">
<div style="display: flex; height: 200px;">
<div>
<canvas style="height: stretch; width: 100px;" data-expected-client-height="200"></canvas>
</div>
</div>