| 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>
|
|
|