Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /shadow-dom/focus-navigation/reading-flow/grid-lanes-column-reading-flow-010.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="timeout" content="long">
<title>CSS Grid Lanes: grid-lanes-track reading flow with reversals and auto height</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="/resources/testdriver-actions.js"></script>
<script src="/shadow-dom/focus-navigation/resources/shadow-dom.js"></script>
<script src="/shadow-dom/focus-navigation/resources/focus-utils.js"></script>
<style>
.lanes {
display: grid-lanes;
grid-template-columns: repeat(3, 90px);
flow-tolerance: 0;
reading-flow: grid-lanes-track;
width: 270px;
}
.lanes > button {
box-sizing: border-box;
padding: 0;
}
</style>
<div class="test-case" data-expect="k,o,n,l,m"
data-description="Grid-lanes-track reads fill-reverse columns from top-to-bottom">
<div class="lanes"
style="grid-lanes-direction: column fill-reverse; height: auto">
<button id="k" style="height: 210px">K</button>
<button id="l" style="height: 60px">L</button>
<button id="m" style="height: 150px">M</button>
<button id="n" style="height: 45px">N</button>
<button id="o" style="height: 30px">O</button>
</div>
</div>
<script>
runFocusTestCases();
</script>