gecko-dev/layout/style/crashtests/1445682.html
Emilio Cobos Álvarez 5caaf1c9f3 Bug 1445682: Make Shadow DOM account for stylesheet applicableness correctly. r=xidorn
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
2018-03-19 15:50:31 +01:00

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>