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

Unified Diff: LayoutTests/http/tests/css/pending-stylesheet-offset-width.html

Issue 287053003: Let updateLayout do style recalc instead of styleResolverChanged. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed unnecessary mime type. Created 6 years, 7 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: LayoutTests/http/tests/css/pending-stylesheet-offset-width.html
diff --git a/LayoutTests/http/tests/css/pending-stylesheet-offset-width.html b/LayoutTests/http/tests/css/pending-stylesheet-offset-width.html
new file mode 100644
index 0000000000000000000000000000000000000000..403e74882e9eae93efb40dd86d2f0ff62dd3587a
--- /dev/null
+++ b/LayoutTests/http/tests/css/pending-stylesheet-offset-width.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<script src="/js-test-resources/js-test.js"></script>
+<style>
+ #t { width: 200px; }
+</style>
+<link rel="stylesheet" href="/resources/load-and-stall.php?name=pending-stylesheet-offset-width.css&stallAt=0&stallFor=1">
+<div id="t"></div>
+<script>
+description("Check that we use the style present asking for offsetWidth, ignoring pending stylesheets.");
+
+shouldBe("t.offsetWidth", "200");
+</script>

Powered by Google App Engine
This is Rietveld 408576698