mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
* Implementation for assignedNodes * Include slots in the flat tree * Fix event get-the-parent algorithm for a node * Update and add reftests for Shadow DOM v1 * Update web platform tests expectations Tag #1375
18 lines
392 B
HTML
18 lines
392 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<script>
|
|
function tweak() {
|
|
var slot = document.createElement("slot");
|
|
slot.style.color = "green";
|
|
|
|
var shadowRoot =
|
|
document.getElementById('outer').attachShadow({mode: 'open'});
|
|
shadowRoot.appendChild(slot);
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="tweak()">
|
|
<div id="outer">This text should be green</div>
|
|
</body>
|
|
</html>
|