| <script src="../js/resources/js-test-pre.js"></script> |
| #a, #b, #container { position:absolute; } |
| <div id=b class="test">Text</div> |
| var link = document.createElement("link"); |
| link.setAttribute("href", "resources/ahem.css"); |
| link.setAttribute("rel", "stylesheet"); |
| link.setAttribute("type", "text/css"); |
| document.head.appendChild(link); |
| var a = document.getElementById('a'); |
| var b = document.getElementById('b'); |
| shouldBeFalse('window.getComputedStyle(a).width == window.getComputedStyle(b).width'); |
| <script src="../js/resources/js-test-post.js"></script> |