https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 3b558a96b2c165d8b8c4aa3ce17e1f7d9e7912ed authored by Dave Tapuska on 18 December 2018, 21:43:49 UTC
Add tentative WPT tests for stale while revalidate handling.
Tip revision: 3b558a9
grid-positioned-items-and-autofit-tracks-007.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Grid Layout Test: Grid positioned items in auto-fit tracks and gaps</title>
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-grid-1/#abspos" title="9. Absolute Positioning">
<link rel="help" href="https://drafts.csswg.org/css-grid-1/#auto-repeat" title="7.2.2.2. Repeat-to-fill: auto-fill and auto-fit repetitions">
<link rel="help" href="https://drafts.csswg.org/css-grid-1/#valdef-repeat-auto-fit">
<meta name="assert" content="This test checks that positioned items ignore collapsed gaps even with non-empty tracks before and after.">
<link rel="stylesheet" href="support/grid.css">
<style>
.container {
  width: 250px;
}
.grid {
  position: relative;
  grid: 10px / repeat(auto-fit, 30px) 50px;
  grid-gap: 5px;
}
span {
  background: blue;
}
.abs {
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  background: pink;
}
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<body onload="checkLayout('.grid')">
<div id="log"></div>
<br>
<div class="container">
    <div class="grid">
        <span style="grid-column: 2 / 5" class="abs" data-expected-width="65" data-expected-height="10"></span>
        <span style="grid-column: 2 / 4" data-expected-width="65" data-expected-height="10"></span>
    </div>
</div>
</body>
back to top