7fde9ecdf314123a7a59616d87ced5faf3fd56c2
[WebKit-https.git] / LayoutTests / fast / sub-pixel / client-width-height-snapping.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../js/resources/js-test-pre.js"></script>
5 </head>
6 <body>
7 <div id="TestDiv" style="position: absolute; left: 10.4px; top: 10.4px; width: 10.4px; height: 10.4px;"></div>
8 <script>
9
10 var div = document.getElementById("TestDiv");
11
12 shouldBe('div.clientWidth', '11');
13 shouldBe('div.clientHeight', '11');
14
15 </script>
16 <script src="../js/resources/js-test-post.js"></script>
17 <script>
18 if (window.testRunner)
19     testRunner.notifyDone();
20 </script>
21 </body>
22 </html>