mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
28
layout/reftests/webcomponents/basic-shadow-2.html
Normal file
28
layout/reftests/webcomponents/basic-shadow-2.html
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<script>
|
||||
function tweak() {
|
||||
var shadowDiv = document.createElement("div");
|
||||
shadowDiv.style.border = "10px solid green";
|
||||
|
||||
var shadowRoot = document.getElementById('outer').createShadowRoot();
|
||||
shadowRoot.appendChild(shadowDiv);
|
||||
|
||||
var orangeDiv = document.createElement("div");
|
||||
orangeDiv.style.border = "10px solid orange";
|
||||
|
||||
var purpleDiv = document.createElement("div");
|
||||
purpleDiv.style.border = "10px solid purple";
|
||||
|
||||
shadowDiv.appendChild(purpleDiv);
|
||||
shadowDiv.insertBefore(orangeDiv, purpleDiv);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="tweak()">
|
||||
<div id="outer">
|
||||
<div style="background-color:red;"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue