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/tentative/grid-order-pseudo-elements.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="timeout" content="long">
<title>CSS Display: reading-flow with value grid-order and pseudo elements</title>
<link rel="author" title="Di Zhang" href="mailto:dizhangg@chromium.org">
<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='../../resources/shadow-dom.js'></script>
<script src="../../resources/focus-utils.js"></script>
<style>
.wrapper {
display: grid;
reading-flow: grid-order;
}
.wrapper::before {
content: "A";
order: 4;
}
.wrapper::after {
content: "Z";
order: 2;
}
</style>
<div class="test-case" data-expect="o1,o3"
data-description="Grid pseudo items are not focusable">
<div class="wrapper" id="wrapper">
<button id="o3" style="order: 3">Item 3</button>
<button id="o1" style="order: 1">Item 1</button>
</div>
</div>
<script>
runFocusTestCases();
</script>