Files
tubestation/layout/reftests/bugs/386310-1b-shadow.html
Brendan Dahl a46603d99a Bug 1510785 - Skip all XBL related tests when XBL is disabled. r=bzbarsky
XBL will be disabled on android, so these tests must be skipped. Where possible
tests are copied to create shadow DOM tests.

Depends on D45615

Differential Revision: https://phabricator.services.mozilla.com/D45616
2019-10-08 23:52:46 +00:00

24 lines
649 B
HTML

<!DOCTYPE html>
<html>
<head>
<script src="386310-script.js"></script>
<script>
customElements.define("custom-element", class extends HTMLElement {
constructor() {
super();
const template = document.getElementById("template");
const shadowRoot = this.attachShadow({mode: "open"})
.appendChild(template.content.cloneNode(true));
}
});
</script>
</head>
<body>
<template id="template">
<span></span>
<slot></slot>
</template>
<custom-element id="test" style="display: block;">first second third [fourth]</custom-element>
</body>
</html>