Skip to content

Commit

Permalink
DOM: Support atomic moves across shadow boundary
Browse files Browse the repository at this point in the history
Per discussion with DOM editors, we've resolved to enable this
functionality.

R=nrosenthal@chromium.org

Bug: 40150299
Change-Id: I9bdb577c7538ca9cfe7af95b6c66159ade8e0c72
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5891771
Reviewed-by: Noam Rosenthal <nrosenthal@chromium.org>
Commit-Queue: Dominic Farolino <dom@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1360104}
  • Loading branch information
domfarolino authored and chromium-wpt-export-bot committed Sep 25, 2024
1 parent a19eaaf commit 093603b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
const shadowContainer = document.querySelector("#shadow-container");
shadowContainer.shadowRoot.querySelector("#new-parent").moveBefore(item, null);
await new Promise(resolve => requestAnimationFrame(() => resolve()));
assert_greater_than(item.getBoundingClientRect().x, 399);
}, "Moving an element with a transition across shadow boundaries should reset the transition");
assert_less_than(item.getBoundingClientRect().x, 400);
}, "Moving an element with a transition across shadow boundaries preserves the transition");
</script>
</body>

0 comments on commit 093603b

Please sign in to comment.