Change fast/s* and fast/t* files to use pre and post js files in LayoutTests/resources.
[WebKit-https.git] / LayoutTests / fast / sub-pixel / client-and-offset-width.html
1 <!DOCTYPE html>
2 <html>
3     <head>
4         <script src="../../resources/js-test-pre.js"></script>
5     </head>
6
7     <body>
8         <div style="margin: 1.1em;">
9             <div id="test"></div>
10         </div>
11         
12         <p>
13             Tests that a block without overflow, borders, margin or padding reports the same clientWidth as offsetWidth.
14         </p>
15
16         <script>
17             var el = document.getElementById("test");
18             if (el.offsetWidth == el.clientWidth)
19                 testPassed('offsetWidth and clientWidth are the same');
20             else
21                 testFailed('offsetWidth is ' + el.offsetWidth + ' but clientWidth is ' + el.clientWidth);
22         </script>
23     </body>
24 </html>