... This preserves the link between the node and its stylesheet, enabling implicit scope to continue working for the static document (e.g. For printing). Differential Revision: https://phabricator.services.mozilla.com/D229531
23 lines
617 B
HTML
23 lines
617 B
HTML
<!DOCTYPE html>
|
|
<link rel="author" title="David Shin" href="mailto:dshin@mozilla.com">
|
|
<link rel="help" href="drafts.csswg.org/css-cascade-6/#scoped-styles">
|
|
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
|
|
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1930618">
|
|
<div>
|
|
<p>Test passes if there is a filled green square.</p>
|
|
<div>
|
|
<template shadowrootmode=open>
|
|
<style>
|
|
@scope {
|
|
.a {
|
|
width: 100px;
|
|
height: 100px;
|
|
background: green;
|
|
}
|
|
}
|
|
</style>
|
|
<div class="a"></div>
|
|
</template>
|
|
</div>
|
|
</div>
|