Index: LayoutTests/fast/dom/HTMLObjectElement/data-attr-reattach-recalc.html |
diff --git a/LayoutTests/fast/dom/HTMLObjectElement/data-attr-reattach-recalc.html b/LayoutTests/fast/dom/HTMLObjectElement/data-attr-reattach-recalc.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7b6d0defffa8faaf48c895c78518f5169c804e2b |
--- /dev/null |
+++ b/LayoutTests/fast/dom/HTMLObjectElement/data-attr-reattach-recalc.html |
@@ -0,0 +1,31 @@ |
+<!DOCTYPE html> |
+<script src="../../../resources/js-test.js"></script> |
+<style> |
+object + div { color: green; } |
esprehn
2014/09/19 04:15:07
Have we seen this in the wild?
|
+</style> |
+<object id="obj" data="data:text/html,FAIL"><div>Fallback</div></object> |
+<div> |
+ <div></div> |
+ <div></div> |
+ <div></div> |
+ <div></div> |
+</div> |
+<script> |
+description("Changing data attribute on <object> should not cause sibling subtree recalc."); |
+ |
+if (window.testRunner) |
+ testRunner.waitUntilDone(); |
+ |
+onload = function() { |
+ |
+ obj.offsetTop; // Force recalc |
+ |
+ obj.setAttribute("data", "data:text/html,PASS"); |
+ |
+ if (window.internals) |
+ shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); |
+ |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+}; |
+</script> |