mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
5caaf1c9f3
Summary: Also, make stuff sound in presence of CSSOM and what not. The dirty: false thing is reverting an accidental change that landed in the de-XBL stuff, which was harmless, but now wouldn't let me assert stuff properly. Reviewers: xidorn Bug #: 1445682 Differential Revision: https://phabricator.services.mozilla.com/D748 MozReview-Commit-ID: K0W2Rv0qK8X
17 lines
559 B
HTML
17 lines
559 B
HTML
<script>
|
|
function go() {
|
|
let host = document.createElement('div');
|
|
let style_1 = document.createElement('style');
|
|
let style_2 = document.createElement('style');
|
|
let otherElement = document.createElement('div');
|
|
let shadowRoot = host.attachShadow({mode: "open"});
|
|
style_1.title = 'x';
|
|
style_2.title = 'y';
|
|
document.head.appendChild(style_1);
|
|
shadowRoot.appendChild(style_2);
|
|
document.documentElement.appendChild(otherElement);
|
|
otherElement.before('', host, '');
|
|
}
|
|
window.addEventListener('load', go)
|
|
</script>
|