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

Unified Diff: LayoutTests/fast/css/link-alternate-style-recalc.html

Issue 260713005: Use deferred style recalc for non-blocking stylesheets. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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
« no previous file with comments | « no previous file | LayoutTests/fast/css/link-alternate-style-recalc-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/link-alternate-style-recalc.html
diff --git a/LayoutTests/fast/css/link-alternate-style-recalc.html b/LayoutTests/fast/css/link-alternate-style-recalc.html
new file mode 100644
index 0000000000000000000000000000000000000000..b40d8cd08b721efcbe0d0a0bb70a0abc6b0a89a1
--- /dev/null
+++ b/LayoutTests/fast/css/link-alternate-style-recalc.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<link rel="alternate stylesheet" title="not-preferred" href="data:text/css,#t {color: green}">
+<div id="t"></div>
+<script>
+description("Check that alternate stylesheet load completion did not cause a synchronous style recalc.");
+
+window.onload = function(){
+ shouldNotBe("internals.updateStyleAndReturnAffectedElementCount()", "0");
+ shouldBe("getComputedStyle(document.getElementById('t'), null).color", "'rgb(0, 0, 0)'");
+};
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/css/link-alternate-style-recalc-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698