Skip to content

Commit cc473b6

Browse files
committed
[css-values] Revert the 'url(#foo) in an external stylesheet refers to the host document' behavior, per WG resolution.
1 parent b8634b5 commit cc473b6

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

css-values/Overview.bs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -589,14 +589,10 @@ Fragment URLs</h4>
589589

590590
When matching a ''url()'' with the <a>local url flag</a> set,
591591
ignore everything but the URL's fragment,
592-
and resolve that fragment against the host document.
592+
and resolve that fragment against the current document that relative URLs are resolved against.
593593
This reference must always be treated as same-document
594594
(rather than cross-document).
595595

596-
Note: This means that an SVG reference like ''url(#my-gradient)''
597-
will work the same whether the CSS is written inline in the SVG document
598-
or linked in as an external CSS stylesheet.
599-
600596
When serializing a ''url()'' with the <a>local url flag</a> set,
601597
it must serialize as just the fragment.
602598

0 commit comments

Comments
 (0)