haikuwebkit/LayoutTests/fast/html/details-summary-tabindex-cr...

25 lines
563 B
HTML

<!DOCTYPE html>
<html>
<body>
<p>This tests calling tabIndex on the summary element inside a details element. WebKit should not hit any assertions.</p>
<details tabindex=0>
<summary>summary content</summary>
summary details
</details>
<script>
if (window.internals) {
testRunner.dumpAsText();
var detailsShadow = internals.shadowRoot(document.querySelector('details'));
detailsShadow.querySelector('summary').tabIndex;
document.write('PASS');
} else
document.write('FAIL - This test requires window.internals');
</script>
</body>
</html>