Bug 200028

Summary: [SVG] url(#fragment) can't resolve properly with HTML base element
Product: WebKit Reporter: Fujii Hironori <Hironori.Fujii>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: sabouhallawa, zimmermann
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=63283
Attachments:
Description Flags
test case none

Description Fujii Hironori 2019-07-23 01:06:16 PDT
[SVG] url(#fragment) can't resolve properly with HTML base element
Comment 1 Fujii Hironori 2019-07-23 01:06:32 PDT
Created attachment 374679 [details]
test case
Comment 2 Fujii Hironori 2019-07-23 01:09:59 PDT
Firefox 68: OK
Chrome 75: OK
Safari Technology Preview Relase 87: NG
Comment 3 Fujii Hironori 2019-07-23 01:31:23 PDT
WinCairo and QtWebKit shows black sun icons in Google News without User Agent spoofing.
https://flic.kr/s/aHsmFoAx1m
Comment 4 Fujii Hironori 2019-07-23 03:12:46 PDT
SVG 2: Linking: 16.1.7.1. Generating the absolute URL
https://svgwg.org/svg2-draft/linking.html#processingURL-absolute

> As defined in CSS Values and Units, a fragment-only URL in a
> style property must be treated as a same-document URL reference,
> regardless of the file in which the property was declared.

https://chromium.googlesource.com/chromium/src.git/+/e7d7225c33aa7fc42ee390125b01df9167fad106
Comment 5 Said Abou-Hallawa 2019-07-23 09:51:20 PDT
If <base href="."> is removed from the test case, the rectangle will be filled by the gradient. This is already reported in https://bugs.webkit.org/show_bug.cgi?id=189499.

*** This bug has been marked as a duplicate of bug 189499 ***