Files
sousa-gecko/testing/web-platform/tests/css/css-cascade/scope-implicit-005-print.html
T
David Shin d892acf987 Bug 1930618: LinkStyle subclasses clone its stylesheet while cloning for static document. r=layout-reviewers,emilio
... 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
2025-07-07 18:52:10 +00:00

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>