Index: LayoutTests/fast/css/invalidation/style-update-with-added-stylesheet.html |
diff --git a/LayoutTests/fast/css/invalidation/style-update-with-added-stylesheet.html b/LayoutTests/fast/css/invalidation/style-update-with-added-stylesheet.html |
index 0f31de4e43f47962935f7dff3b6a2fb769fff905..84eb99cb7c3aa30d41e4fee4222141da566cf58f 100644 |
--- a/LayoutTests/fast/css/invalidation/style-update-with-added-stylesheet.html |
+++ b/LayoutTests/fast/css/invalidation/style-update-with-added-stylesheet.html |
@@ -26,7 +26,7 @@ target.className = 'class'; |
var styleElement = document.createElement("style"); |
styleElement.textContent = '#useless {width: 300px}'; |
// Insert before style sheet s2 in order to trigger style resolver reconstruction. |
-document.getElementById('s2').insertBefore(styleElement); |
+document.getElementById('s2').insertBefore(styleElement, null); |
shouldBe("getComputedStyle(target).width", '"200px"'); |