Repository navigation
[Image Redux] An image URL's fragment directive hides the fragment before it - #78230
Merged
webkit-commit-queue merged 1 commit intoOct 25, 2026
Merged
Conversation
Collaborator
|
EWS run on previous version of this PR (hash b0ec102) Details |
weinig
requested review from
alanbaradlay,
anttijk,
darinadler,
nullhook and
smfr
October 25, 2026 15:52
weinig
force-pushed
the
eng/svg-image-fragment-directive
branch
from
October 25, 2026 15:54
b0ec102 to
40ab1b1
Compare
Collaborator
|
EWS run on current version of this PR (hash 40ab1b1) Details |
darinadler
approved these changes
Oct 25, 2026
…fore 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@main
webkit-commit-queue
force-pushed
the
eng/svg-image-fragment-directive
branch
from
October 25, 2026 19:50
40ab1b1 to
701620c
Compare
Collaborator
|
Committed 324650@main (701620c): https://commits.webkit.org/324650@main Reviewed commits have been landed. Closing PR #78230 and removing active labels. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🛠 ios-safer-cpp
701620c
40ab1b1
🧪 wpe-wk2🧪 mac-cmake-debug-wk2🧪 mac-wk2-stress🧪 mac-intel-wk2