Repository navigation
Commit 701620c
committed
[Image Redux] An image URL's fragment directive hides the fragment before it
https://bugs.webkit.org/show_bug.cgi?id=328791
Reviewed by Darin Adler.
Removes the fragment directive from a URL before passing the fragment to an SVG image. For example, an image URL
like foo.svg#box:~:param(--bg, green) was previously passing "box:~:param(--bg, green)" to the SVG element as
the target and now just passes "box" (the "param(--bg, green)" is passed separately as link parameters already).
No spec says whether this is the correct behavior, but it really is the only thing that makes sense. I have filed
w3c/csswg-drafts#14656 to track getting the specs updated.
Also removes CursorImage's override of drawingExtrasForRenderer() which was unnecessary and incomplete. Instead,
the default implementation in MultiImage that forwards is used.
Tests: imported/w3c/web-platform-tests/svg/styling/css-linked-parameters/link-parameters-fragment-identifier-background.html
imported/w3c/web-platform-tests/svg/styling/css-linked-parameters/link-parameters-fragment-identifier.html
Tools/TestWebKitAPI/Tests/WTF/Vector.cpp
* LayoutTests/imported/w3c/web-platform-tests/svg/styling/css-linked-parameters/link-parameters-fragment-identifier-background-expected.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/svg/styling/css-linked-parameters/link-parameters-fragment-identifier-background.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/svg/styling/css-linked-parameters/link-parameters-fragment-identifier-expected.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/svg/styling/css-linked-parameters/link-parameters-fragment-identifier-ref.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/svg/styling/css-linked-parameters/link-parameters-fragment-identifier.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/svg/styling/css-linked-parameters/resources/target.svg: Added.
* Source/WTF/wtf/Vector.h:
* Source/WebCore/css/parser/CSSPropertyParserConsumer+LinkParameters.cpp:
* Source/WebCore/css/parser/CSSPropertyParserConsumer+LinkParameters.h:
* Source/WebCore/style/values/images/kinds/StyleCachedImage.cpp:
* Source/WebCore/style/values/images/kinds/StyleCachedImage.h:
* Source/WebCore/style/values/images/kinds/StyleCursorImage.cpp:
* Source/WebCore/style/values/images/kinds/StyleCursorImage.h:
* Tools/TestWebKitAPI/Tests/WTF/Vector.cpp:
Canonical link: https://commits.webkit.org/324650@main1 parent 5d49ade commit 701620c
14 files changed
Lines changed: 133 additions & 27 deletions
File tree
- LayoutTests/imported/w3c/web-platform-tests/svg/styling/css-linked-parameters
- resources
- Source
- WTF/wtf
- WebCore
- css/parser
- style/values/images/kinds
- Tools/TestWebKitAPI/Tests/WTF
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
930 | 930 | | |
931 | 931 | | |
932 | 932 | | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
933 | 936 | | |
934 | 937 | | |
935 | 938 | | |
| |||
1268 | 1271 | | |
1269 | 1272 | | |
1270 | 1273 | | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
1271 | 1288 | | |
1272 | 1289 | | |
1273 | 1290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
107 | | - | |
| 108 | + | |
108 | 109 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
| 110 | + | |
119 | 111 | | |
120 | 112 | | |
121 | 113 | | |
122 | 114 | | |
123 | 115 | | |
124 | | - | |
125 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
126 | 119 | | |
127 | 120 | | |
128 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | | - | |
| 100 | + | |
| 101 | + | |
103 | 102 | | |
104 | 103 | | |
105 | 104 | | |
| |||
276 | 275 | | |
277 | 276 | | |
278 | 277 | | |
279 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
280 | 281 | | |
281 | 282 | | |
282 | 283 | | |
| |||
0 commit comments