mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 11:37:43 -10:00
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
19 lines
655 B
HTML
19 lines
655 B
HTML
<!doctype html>
|
|
<title>CSS Scoping Module Level 1 - Dynamic insertion of shadow host</title>
|
|
<link rel="author" href="mailto:[email protected]">
|
|
<link rel="help" href="https://drafts.csswg.org/css-scoping/#selectors-data-model">
|
|
<link rel="match" href="reference/green-box.html"/>
|
|
<p>Test passes if you see a single 100px by 100px green box below.</p>
|
|
<script>
|
|
let host = document.createElement('div');
|
|
let root = host.attachShadow({ mode: 'open' });
|
|
root.innerHTML = `
|
|
<style>
|
|
div { background: green; width: 100px; height: 100px; }
|
|
</style>
|
|
<div></div>
|
|
`;
|
|
document.body.offsetTop;
|
|
document.body.appendChild(host);
|
|
</script>
|