-
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.
Merge pull request #11 from krksgbr/ignore-hidden-elements
Ignore non-rendered elements
- Loading branch information
Showing
3 changed files
with
97 additions
and
2 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,42 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="stylesheet" href="styles.css" /> | ||
<style> | ||
.opacityZero { | ||
opacity: 0; | ||
} | ||
.displayNone { | ||
display: none; | ||
} | ||
.visibilityHidden { | ||
visibility: hidden; | ||
} | ||
.visibilityCollapse { | ||
visibility: collapse; | ||
} | ||
.zeroWidth { | ||
display: inline-block; | ||
width: 0; | ||
overflow: hidden; | ||
} | ||
.zeroHeight { | ||
display: inline-block; | ||
height: 0; | ||
overflow: hidden; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<button id="first-button">First Button</button> | ||
<button class="opacityZero">Transparent Button</button> | ||
<button class="displayNone">Hidden Button</button> | ||
<button class="visibilityHidden">Hidden Button</button> | ||
<button class="visibilityCollapse">Hidden Button</button> | ||
<span tabindex="1" class="zeroWidth">Hidden Element</span> | ||
<span tabindex="1" class="zeroHeight">Hidden Element</span> | ||
<button id="last-button">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