Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / script-styled-size.html
blob3edeb75378299d60bf9c1c8652518a481a674769
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
4 <style>
5 script { display: block; }
6 </style>
8 <script>
9 description("Test that script can access its own renderer when executing");
11 document.documentElement.offsetTop;
12 script = document.createElement('script');
13 script.textContent = 'shouldBeTrue("script.offsetWidth > 0")';
14 document.documentElement.appendChild(script);
15 shouldBeTrue('script.offsetWidth > 0');
16 </script>