2 <div id=
"element"></div>
4 <script src=
"../../resources/testharness.js"></script>
5 <script src=
"../../resources/testharnessreport.js"></script>
9 assert_unreached('This test requires window.internals.');
11 assert_greater_than(internals
.updateStyleAndReturnAffectedElementCount(), 1);
13 element
.style
.top
= "0px";
14 assert_equals(internals
.updateStyleAndReturnAffectedElementCount(), 1);
16 for (var i
= 0; i
< 100; i
++) {
17 element
.style
.top
= "0px";
18 assert_equals(internals
.updateStyleAndReturnAffectedElementCount(), 0);
20 }, "Check that a no-op inline style change doesn't result in a recalc");