REGRESSION(SUBPIXEL_LAYOUT) Composited layers can cause one pixel shifts
[WebKit-https.git] / LayoutTests / fast / sub-pixel / replaced-element-baseline.html
1 <!DOCTYPE html>
2 <html>
3     <head>
4         <script src="../js/resources/js-test-pre.js"></script>
5         <style type='text/css'>
6             html, body {
7                 margin: 0;
8                 padding: 0;
9             }
10             input {  
11                 width: 100px;
12                 height: 2em;
13                 font-size: 12px;
14                 border: 1px solid black;
15             }
16             #b {   
17                 position: absolute;
18                 margin-left: 10px;
19                 left: 110px;
20             }
21
22         </style>
23     </head>
24     <body>
25         <input id="a"></input><input id="b"></input>
26         <div id="console"></div>
27     </body>
28     <script>
29         shouldBe("document.getElementById('a').getBoundingClientRect().top", '0');
30         shouldBe("document.getElementById('b').getBoundingClientRect().top", '0');
31     </script>
32 </html>
33