| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../../resources/testharness.js"></script> | 2 <script src="../../../resources/testharness.js"></script> |
| 3 <script src="../../../resources/testharnessreport.js"></script> | 3 <script src="../../../resources/testharnessreport.js"></script> |
| 4 <style> | 4 <style> |
| 5 [style] + span { color: green; } | 5 [style] + span { color: green; } |
| 6 </style> | 6 </style> |
| 7 <div id="styledDiv"></div> | 7 <div id="styledDiv"></div> |
| 8 <span id="target"></span> | 8 <span id="target"></span> |
| 9 <script> | 9 <script> |
| 10 test(function() { | 10 test(function() { |
| 11 document.body.offsetTop; | 11 document.body.offsetTop; |
| 12 styledDiv.style.color = "red"; | 12 styledDiv.style.color = "red"; |
| 13 assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 2); | 13 assert_equals(internals.updateStyleAndLayoutAndReturnAffectedElementCount(),
2); |
| 14 assert_equals(getComputedStyle(target).color, "rgb(0, 128, 0)"); | 14 assert_equals(getComputedStyle(target).color, "rgb(0, 128, 0)"); |
| 15 }, "Test that we schedule invalidation sets for changes made to style attribut
es."); | 15 }, "Test that we schedule invalidation sets for changes made to style attribut
es."); |
| 16 </script> | 16 </script> |
| OLD | NEW |