... 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
17 lines
548 B
HTML
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>
|