| Index: third_party/WebKit/LayoutTests/fast/css/invalidation/lazy-reattach-object.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/css/invalidation/lazy-reattach-object.html b/third_party/WebKit/LayoutTests/fast/css/invalidation/lazy-reattach-object.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5b1fe795909afca908ac2152af165aeba921d087
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/css/invalidation/lazy-reattach-object.html
|
| @@ -0,0 +1,26 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../../resources/js-test.js"></script>
|
| +<style>
|
| + object + div { color: green; }
|
| +</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("Reattaching object should not trigger sibling forest invalidation.");
|
| +
|
| +shouldBeDefined(window.internals);
|
| +
|
| +// Force recalc
|
| +obj.offsetTop;
|
| +
|
| +// Trigger reattach of fallback content.
|
| +obj.setAttribute("data", "data:text/html,PASS");
|
| +
|
| +shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
|
| +
|
| +</script>
|
|
|