wpt / css / css-shapes / shape-outside / supported-shapes / inset / shape-outside-inset-refcrash.html

Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-shapes/shape-outside/supported-shapes/inset/shape-outside-inset-refcrash.html

<!DOCTYPE html>
<link rel="match" href="../../../../reference/ref-filled-green-100px-square-only.html">
<link rel="help" href="https://crbug.com/962135" />
<meta name="assert" content="This test passes if the renderer does not crash."/>
<p>Test passes if there is a filled green square.</p>
<div style="width: 100px; height: 100px; display: flow-root; background: green;">
  <div style="width: 20px; height: 20px; float: right;"></div>
  <div style="width: 20px; height: 10px; display: inline-block;"></div>
  <div style="width: 40px; height: 20px; overflow: hidden;"></div>
  <div style="width: 20px; height: 10px; display: inline-block;"></div>
  <div style="width: 50px; height: 50px; float: left; shape-outside: inset(20px 0 0 0);"></div>
  <div id="target" style="height: 50px; margin: 10px 0;"></div>
  <div style="width: 20px; height: 10px; display: inline-block;"></div>
</div>
<script>
document.body.offsetTop;
document.getElementById('target').style.height = '10px';
document.body.offsetTop;
</script>

/css/reference/ref-filled-green-100px-square-only.html

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
<p>Test passes if there is a filled green square.</p>
<div style="width:100px; height:100px; background:green;"></div>