Files
sousa-gecko/testing/web-platform/tests/css/css-cascade/scope-implicit-003-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

17 lines
548 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="scope-implicit-003-print-ref.html">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1930618">
<p>Test passes if there is a filled green square.</p>
<svg width="100" height="100" viewBox="0 0 100 100">
<style>
@scope {
.a {
fill: green;
}
}
</style>
<rect class="a" x="0" y="0" width="100" height="100" />
</svg>