Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Unified Diff: content/test/data/accessibility/hit_testing/hit_testing.html

Issue 2393123002: Implement caching asynchronous accessibility hit testing. (Closed)
Patch Set: Made test more robust Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/data/accessibility/hit_testing/button_scrolled.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/accessibility/hit_testing/hit_testing.html
diff --git a/content/test/data/accessibility/hit_testing/hit_testing.html b/content/test/data/accessibility/hit_testing/hit_testing.html
new file mode 100644
index 0000000000000000000000000000000000000000..28d533e5e47fc90aca20136300a43f4bd4520836
--- /dev/null
+++ b/content/test/data/accessibility/hit_testing/hit_testing.html
@@ -0,0 +1,69 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+body {
+ overflow: hidden;
+}
+iframe {
+ border: 0;
+ margin: 0;
+ padding: 0;
+ overflow: hidden;
+}
+div {
+ width: 300px;
+ height: 150px;
+}
+.curtain {
+ position: fixed;
+ left: 0px;
+ top: 0px;
+ right: 0px;
+ bottom: 0px;
+ width: 100%;
+ height: 100%;
+ z-index: -1;
+ background-color: #eef;
+}
+</style>
+</head>
+<body style="margin: 0; padding: 0;">
+
+<!-- Confound naive hit testing by appearing to cover the whole screen,
+ while actually having a negative z-index. -->
+<div role="group" class="curtain">
+ <div role="group" class="curtain">
+ </div>
+</div>
+
+<div>
+ <button style="margin: 25px; border: 0; width: 250px; height: 50px">
+ Button
+ </button>
+</div>
+
+<div>
+ <button style="margin: 25px; border: 0; width: 250px; height: 50px">
+ Button
+ </button>
+</div>
+
+<div>
+ <iframe id="frame1" style="width: 300px; height: 100px;"
+ scrolling="no" src="button.html"></iframe>
+</div>
+
+<div>
+ <iframe id="frame2" style="width: 150px; height: 50px;"
+ scrolling="no" src="button_scrolled.html"></iframe>
+</div>
+
+<!-- Confound naive hit testing by appearing to cover the whole screen -->
+<div role="group" class="curtain">
+ <div role="group" class="curtain">
+ </div>
+</div>
+
+</body>
+</html>
« no previous file with comments | « content/test/data/accessibility/hit_testing/button_scrolled.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698