| 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..1c1711b66952411c4c1d791bb08980efa0804778
|
| --- /dev/null
|
| +++ b/content/test/data/accessibility/iframe-coordinates.html
|
| @@ -0,0 +1,70 @@
|
| +<!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>
|
| +<style>
|
| +iframe {
|
| + border: 0;
|
| + margin: 0;
|
| + padding: 0;
|
| +}
|
| +div {
|
| + width: 300px;
|
| + height: 150px;
|
| +}
|
| +</style>
|
| +</head>
|
| +<body style="margin: 0; padding: 0;">
|
| +
|
| +<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;"></iframe></div>
|
| +
|
| +<div><iframe id="frame2" style="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: 25px; border: 0; width: 250px; height: 50px">\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>
|
|
|