Index: LayoutTests/fast/layout/list-color-change-no-layout.html |
diff --git a/LayoutTests/fast/layout/list-color-change-no-layout.html b/LayoutTests/fast/layout/list-color-change-no-layout.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..51d852b8f607bc74559ef6dec7cf7cc04055b53a |
--- /dev/null |
+++ b/LayoutTests/fast/layout/list-color-change-no-layout.html |
@@ -0,0 +1,17 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/js-test.js"></script> |
+<script> |
+onload = function() { |
+ document.body.offsetTop; |
+ var target = document.getElementById('target'); |
+ target.style.color = 'green'; |
+ if (window.internals) { |
+ shouldBe("window.internals.updateStyleAndReturnAffectedElementCount()", "2", true); |
+ shouldBe("internals.needsLayoutCount()", "0"); |
+ } |
+} |
+</script> |
+Should not layout when list color changes. |
+<ul id="target"> |
+ <li>List item</li> |
+</ul> |