OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style type="text/css"> |
| 3 h1 { background-color: blue } |
| 4 </style> |
| 5 </head> |
| 6 <script> |
| 7 var link = document.createElement('link'); |
| 8 link.setAttribute('rel', 'stylesheet'); |
| 9 link.setAttribute('type', 'text/css'); |
| 10 link.setAttribute('href', 'resources/slow-loading-sheet.php?color=red'); |
| 11 document.head.appendChild(link); |
| 12 </script> |
| 13 <h1 id='title'>Dynamically inserted StyleSheet shouldn't block loading.</h1> |
| 14 <script> |
| 15 var style = window.getComputedStyle(document.getElementById('title'), ''); |
| 16 document.write(style['background-color']); |
| 17 |
| 18 if (window.testRunner) { |
| 19 testRunner.dumpAsText(); |
| 20 } |
| 21 </script> |
OLD | NEW |