Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / sub-pixel / scroll-offset-precision-expected.html
blobc13da31246f16c0c0ca69acecf5e13f41d5c3830
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 #test {
6 zoom: 1.666667;
8 #test > div {
9 display: inline-block;
10 width: 110px;
11 height: 100px;
12 overflow: hidden;
14 #test > div > a {
15 display: block;
16 text-decoration: none;
17 border-bottom: 1px solid black;
18 margin: 300px 0 10px 0;
20 </style>
21 </head>
22 <body>
23 <section id="test">
24 <div id="a"><a>Container A</a></div><div id="b"><a>Container B</a></div>
25 </section>
26 <section>
27 <p>
28 Tests that scroll offsets have sub-pixel precision.
29 </p>
30 <p>
31 The underlines for both <code>Container A</code> and
32 <code>Container B</code> above should line up.
33 </p>
34 </section>
35 <script>
36 var elementA = document.getElementById('a');
37 var elementB = document.getElementById('b');
38 elementA.getElementsByTagName('a')[0].scrollIntoView();
39 elementB.getElementsByTagName('a')[0].scrollIntoView();
40 </script>
41 </body>
42 </html>