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

Unified Diff: content/test/data/accessibility/iframe-coordinates.html

Issue 12084028: Fix accessibility coordinates within iframes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Mac helper functions Created 7 years, 11 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
Index: content/test/data/accessibility/iframe-coordinates.html
diff --git a/content/test/data/accessibility/iframe-coordinates.html b/content/test/data/accessibility/iframe-coordinates.html
new file mode 100644
index 0000000000000000000000000000000000000000..4bbd053e9fdd79ecbfddfff040450c3ae3dbde7c
--- /dev/null
+++ b/content/test/data/accessibility/iframe-coordinates.html
@@ -0,0 +1,65 @@
+<!doctype html>
+<!--
+@MAC-DENY:title*
+@MAC-DENY:value*
+@MAC-ALLOW:position*
+@MAC-ALLOW:size*
+
+@WIN-DENY:title*
+@WIN-ALLOW:location*
+@WIN-ALLOW:size*
+-->
+<html>
+<head>
+</head>
+<body style="margin: 0; padding: 0;">
+
+<div style="width: 300px; height: 100px;">
+ <button style="margin: 20px; border: 0; width: 260px; height: 60px">
+ Button
+ </button>
+</div>
+
+<div style="width: 300px; height: 100px;">
+ <button style="margin: 20px; border: 0; width: 260px; height: 60px">
+ Button
+ </button>
+</div>
+
+<div>
+ <iframe id="frame1" style="border: 0; width: 300px; height: 100px;">
+ </iframe>
+</div>
+
+<div>
+ <iframe id="frame2" style="border: 0; width: 150px; height: 50px;">
+ </iframe>
+</div>
+
+<script>
+var frameCode =
+ '<body style="margin: 0; padding: 0;">\n' +
+ '<div style="width: 300px; height: 100px;">\n' +
+ ' <button style="margin: 20px; border: 0; width: 260px; height: 60px">\n' +
+ ' Button\n' +
+ ' </button>\n' +
+ '</div>\n' +
+ '</body>\n';
+
+function writeFrameCode(frame) {
+ var doc = frame.contentWindow.document;
+ doc.open();
+ doc.write(frameCode);
+ doc.close();
+}
+
+var frame1 = document.getElementById('frame1');
+writeFrameCode(frame1);
+
+var frame2 = document.getElementById('frame2');
+writeFrameCode(frame2);
+frame2.contentWindow.scrollTo(150, 50);
+</script>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698