wpt / css / css-grid / anonymous-grid-items-002.html

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

/css/css-grid/anonymous-grid-items-002.html

<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-grid-1/#grid-items">
<link rel="match" href="anonymous-grid-items-002-ref.html">
<p>Test passes if there are two lines below:</p>
<hr>
<div style="display: grid; grid-auto-flow: row;">
  line one <span id="target" style="position: absolute; display: none;"></span> line two
</div>
<script>
document.body.offsetTop;
document.getElementById('target').style.display = 'inline';
</script>

/css/css-grid/anonymous-grid-items-002-ref.html

<!DOCTYPE html>
<p>Test passes if there are two lines below:</p>
<hr>
<div style="display: grid; grid-auto-flow: row;">
  line one <span style="position: absolute;"></span> line two
</div>