wpt / css / css-grid / grid-item-percentage-quirk-002.html

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

/css/css-grid/grid-item-percentage-quirk-002.html

<!-- quirks mode -->
<link rel="match" href="../../quirks/reference/green-100px-square-no-red.html">
<link rel="help" href="https://quirks.spec.whatwg.org/#the-percentage-height-calculation-quirk">
<p>There should be a filled green square below, and no red.</p>
<div style="width: 100px; height: 100px; overflow: hidden; background: green;">
  <div style="display: grid; position: relative; left: -20px;">
    <div width=10 height=10 style="height: 200%; width: 200px; background: red;"></div>
  </div>
</div>

/quirks/reference/green-100px-square-no-red.html

<!-- quirks mode -->
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
<p>There should be a filled green square below, and no red.</p>
<div style="width:100px; height:100px; background:green;"></div>