REGRESSION(SUBPIXEL_LAYOUT) Composited layers can cause one pixel shifts
[WebKit-https.git] / LayoutTests / fast / sub-pixel / float-precision.html
1 <!DOCTYPE html>
2 <html>
3   <body style="zoom: 1.1;">
4     <div id="test" style="height: 100px;">
5       <div id="red" style="width: 212px; height: 100px; background:red; float: left;"></div>
6       <div id="blue" style="height: 100px; background: blue; float: left;"></div>
7     </div>
8     <script>
9       var testContainer = document.getElementById('test');
10         var w = document.body.getBoundingClientRect().width;
11         w = 913.0908660888672;
12         testContainer.style.width = w + 'px';
13         testContainer.children[1].style.width = (w - testContainer.children[0].getBoundingClientRect().width) + 'px';
14     </script>
15   </body>
16 </html>