Repository navigation
Fix a bug with incorrect resolving of fill/stroke color - #953
Merged
Merged
Conversation
Collaborator
|
Yep, looks good. |
Collaborator
Author
|
Are you sure? Check the issue again, it seems like the behavior we currently have might actually be correct if I'm understanding correctly. |
simartin
added a commit
to simartin/servo
that referenced
this pull request
May 6, 2026
Since I have a pending patch in resvg to fix issue servo#41273, I figured it'd be useful to update to using the latest version, which this patch does. As a bonus, we can get rid of 3 known failures: - /css/filter-effects/svg-feoffset-001.html - /svg/embedded/image-embedding-nesteder-data-url.html - /svg/pservers/reftests/radialgradient-basic-002.svg that I believe were respectively fixed by: - linebender/resvg#953 - linebender/resvg#958 - linebender/resvg#1014 Testing: 3 known-to-fail tests now pass, and the rest in untouched Signed-off-by: Simon Martin <[email protected]>
simartin
added a commit
to simartin/servo
that referenced
this pull request
May 9, 2026
Since I have a pending patch in resvg to fix issue servo#41273, I figured it'd be useful to update to using the latest version, which this patch does. As a bonus, we can get rid of 3 known failures: - /css/filter-effects/svg-feoffset-001.html - /svg/embedded/image-embedding-nesteder-data-url.html - /svg/pservers/reftests/radialgradient-basic-002.svg that I believe were respectively fixed by: - linebender/resvg#953 - linebender/resvg#958 - linebender/resvg#1014 Testing: 3 known-to-fail tests now pass, and the rest in untouched Signed-off-by: Simon Martin <[email protected]>
dmtrKovalenko
pushed a commit
to dmtrKovalenko/svgr
that referenced
this pull request
Oct 13, 2026
…inebender#953) Upstream: linebender/resvg@fcc516e Adaptation: the fork's svgtree stores typed attribute values, so instead of upstream's `value: &str` parameter convert_paint() takes the ancestor node that defines the paint (`paint_node`) and reads the typed value from it, while `currentColor`, paint-server fallbacks and links are resolved relative to the current element.
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.
Previously, we would first search for an ancestor node that contains the fill/stroke attribute, and then search for the actual color starting from that ancestor node. However, the actual color can potentially be defined in a child of the ancestor node (see the introduced tests). This PR fixes that.