mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-10 17:27:30 +09:00
* Cleanup a bit the ShadowRoot code * Privatize ShadowRoot methods * When the shadow tree distribution changes, post a restyle + reframe * Simplify ShadowRoot::IsPooledNode * Be a bit better at detecting distribution changes Tag #1375
16 lines
513 B
HTML
16 lines
513 B
HTML
<!doctype html>
|
|
<script>
|
|
// Test for content redistribution outside of the document.
|
|
// Passes if it doesn't assert.
|
|
let host = document.createElement('div');
|
|
host.innerHTML = "<div id='foo'></div>";
|
|
|
|
let shadowRoot = host.createShadowRoot();
|
|
shadowRoot.innerHTML = "<content select='#foo'></content>";
|
|
|
|
host.firstElementChild.removeAttribute('id');
|
|
|
|
// Move to the document, do the same.
|
|
document.documentElement.appendChild(host);
|
|
host.firstElementChild.setAttribute('id', 'foo');
|
|
</script>
|