Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / computed-width-without-renderer.html
blob01d48f7f4aa796cd297474fb0373da6ba01e42df
1 <html>
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 function measure() {
9 var div = document.createElement('div');
10 div.textContent = "PASS";
12 var link = document.createElement('link');
13 link.rel = 'stylesheet';
14 link.href = "doesnotexist.css";
15 document.head.appendChild(link);
17 document.body.appendChild(div);
18 var style = getComputedStyle(div);
19 window.width1 = style.width;
20 window.width2 = style.width;
21 shouldBe("window.width1", "window.width2");
23 </script>
24 </head>
25 <body onload="measure()">
26 </body>
27 </html>