Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / sub-pixel / float-precision.html
blob77fcbd9f6ef0f511520c2e33359a894d2575bf01
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>