Index: LayoutTests/fast/lists/list-color-change-no-layout.html |
diff --git a/LayoutTests/fast/lists/list-color-change-no-layout.html b/LayoutTests/fast/lists/list-color-change-no-layout.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f2a28c05615f65deb12902befcc81a902856d4e7 |
--- /dev/null |
+++ b/LayoutTests/fast/lists/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('internals.updateStyleAndReturnAffectedElementCount()', '2'); |
+ shouldBe('internals.needsLayoutCount()', '0'); |
+ } |
+} |
+</script> |
+Should not layout when list color changes. |
+<ul id="target"> |
+ <li>List item</li> |
+</ul> |