mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
237d762715
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 --HG-- rename : layout/inspector/tests/test_bug522601.xhtml => layout/inspector/tests/test_bug522601-shadow.xhtml rename : layout/inspector/tests/test_bug609549.xhtml => layout/inspector/tests/test_bug609549-shadow.xhtml rename : layout/reftests/bugs/334829-1a.xhtml => layout/reftests/bugs/334829-1a-shadow.xhtml rename : layout/reftests/bugs/334829-1b.xhtml => layout/reftests/bugs/334829-1b-shadow.xhtml rename : layout/reftests/bugs/386310-1b.html => layout/reftests/bugs/386310-1b-shadow.html rename : layout/reftests/bugs/386310-1c.html => layout/reftests/bugs/386310-1c-shadow.html rename : layout/reftests/bugs/386310-1d.html => layout/reftests/bugs/386310-1d-shadow.html rename : layout/reftests/bugs/482592-1a.xhtml => layout/reftests/bugs/482592-1a-shadow.xhtml rename : layout/reftests/bugs/482592-1b.xhtml => layout/reftests/bugs/482592-1b-shadow.xhtml rename : layout/reftests/css-selectors/sibling-combinators-on-anon-content-1.xhtml => layout/reftests/css-selectors/sibling-combinators-on-anon-content-1-shadow.xhtml rename : layout/reftests/css-selectors/sibling-combinators-on-anon-content-2.xhtml => layout/reftests/css-selectors/sibling-combinators-on-anon-content-2-shadow.xhtml rename : layout/reftests/dom/multipleinsertionpoints-appendmultiple.xhtml => layout/reftests/dom/multipleinsertionpoints-appendmultiple-shadow.xhtml rename : layout/reftests/dom/multipleinsertionpoints-appendsingle-1.xhtml => layout/reftests/dom/multipleinsertionpoints-appendsingle-1-shadow.xhtml rename : layout/reftests/dom/multipleinsertionpoints-appendsingle-2.xhtml => layout/reftests/dom/multipleinsertionpoints-appendsingle-2-shadow.xhtml rename : layout/reftests/dom/multipleinsertionpoints-insertmultiple.xhtml => layout/reftests/dom/multipleinsertionpoints-insertmultiple-shadow.xhtml rename : layout/reftests/dom/multipleinsertionpoints-insertsingle-1.xhtml => layout/reftests/dom/multipleinsertionpoints-insertsingle-1-shadow.xhtml rename : layout/reftests/dom/multipleinsertionpoints-insertsingle-2.xhtml => layout/reftests/dom/multipleinsertionpoints-insertsingle-2-shadow.xhtml rename : layout/reftests/dom/multipleinsertionpoints-ref2.xhtml => layout/reftests/dom/multipleinsertionpoints-ref2-shadow.xhtml rename : layout/reftests/ib-split/insert-into-split-inline-5.html => layout/reftests/ib-split/insert-into-split-inline-5-shadow.html extra : moz-landing-system : lando
43 lines
973 B
HTML
43 lines
973 B
HTML
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
|
|
<head>
|
|
<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));
|
|
}
|
|
});
|
|
|
|
function boom()
|
|
{
|
|
document.body.offsetHeight;
|
|
|
|
var parent = document.getElementById("parent");
|
|
|
|
var newelt = document.createElement("div");
|
|
newelt.appendChild(document.createTextNode(5));
|
|
parent.appendChild(newelt);
|
|
|
|
document.body.offsetHeight;
|
|
document.documentElement.className = "";
|
|
}
|
|
</script>
|
|
|
|
</head>
|
|
<body onload="boom();">
|
|
<template id="template">
|
|
<div>
|
|
<slot name="foo"/>
|
|
</div>
|
|
<div>
|
|
<slot/>
|
|
</div>
|
|
</template>
|
|
<custom-element id="parent" style="display: block;">
|
|
<div>3</div><span slot="foo">1</span><div>4</div><span slot="foo">2</span>
|
|
</custom-element>
|
|
</body>
|
|
</html>
|