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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/css/css-non-blocking.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/css/css-non-blocking.html b/third_party/WebKit/LayoutTests/http/tests/css/css-non-blocking.html
new file mode 100644
index 0000000000000000000000000000000000000000..0551dfe208f3649ad4320666a5737efc57421de4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/css/css-non-blocking.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<style type="text/css">
+h1 { background-color: blue }
+</style>
+</head>
+<script>
+var link = document.createElement('link');
+link.setAttribute('rel', 'stylesheet');
+link.setAttribute('type', 'text/css');
+link.setAttribute('href', 'resources/slow-loading-sheet.php?color=red');
+document.head.appendChild(link);
+</script>
+<h1 id='title'>Dynamically inserted StyleSheet shouldn't block loading.</h1>
+<script>
+var style = window.getComputedStyle(document.getElementById('title'), '');
+document.write(style['background-color']);
+
+if (window.testRunner) {
+ testRunner.dumpAsText();
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698