Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<meta charset="utf-8">
<title>HTML Test: focusgroup - Validate that Focusgroup doesn't work when not set on a table element</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
<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/focusgroup-utils.js"></script>
<div focusgroup=grid>
<span id=nonitem1 tabindex=0>nonitem1</span>
<span id=nonitem2 tabindex=-1>nonitem2</span>
</div>
<script>
promise_test(async t => {
var nonitem1 = document.getElementById("nonitem1");
await focusAndKeyPress(nonitem1, kArrowRight);
assert_equals(document.activeElement, nonitem1);
}, "Validates that focusgroup=grid set on a non table layout doesn't become a grid focusgroup nor a linear one.");
</script>