-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consider descendents of closed details unfocusable
Somewhat counterintuitively, descendents of closed details elements are seemingly not inert, invisible, dimensionless, etc. Therefore we detect them explicitly to exclude them from focusable elements.
- Loading branch information
Showing
4 changed files
with
89 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="stylesheet" href="styles.css" /> | ||
<style> | ||
button { | ||
width: 100%; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<button id="button-1">First Button</button> | ||
|
||
<details> | ||
<summary id="summary-1">Toggled Group</summary> | ||
<button id="group-button-1">Group Button 1</button> | ||
<button id="group-button-2">Group Button 2</button> | ||
<details> | ||
<summary id="summary-2">Toggle in Toggle</summary> | ||
<button id="subgroup-button-1">Subgroup Button 1</button> | ||
<button id="subgroup-button-2">Subgroup Button 2</button> | ||
</details> | ||
</details> | ||
|
||
<button id="button-2">Last Button</button> | ||
|
||
<script src="../../index.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters