blob: f2a28c05615f65deb12902befcc81a902856d4e7 [file] [log] [blame]
<!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>