Chromium Code Reviews| 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;"> |
|
aboxhall
2013/01/29 01:52:40
Why is this iframe half the size of everything els
dmazzoni
2013/01/29 16:51:50
It's deliberately scrolled also (see below) - so w
aboxhall
2013/01/29 17:43:26
Right, I somehow forgot that it has to be smaller
|
| + </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> |