Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/css/css-non-blocking.html

Issue 1603873004: Dynamically inserted StyleSheet shouldn't block loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update LayoutTests Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698