Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check xlink:href for gradientUnits="userSpaceOnUse" #271

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nthykier
Copy link
Contributor

When considering to prune attributes set to a default values, we
checked the gradientUnits attribute first to determine if that was
valid. Unfortunately, we omitted to check whether the gradientUnits
attribute was inherited via xlink:ref. This commit corrects that
bug.

Closes: #225
Signed-off-by: Niels Thykier [email protected]

@codecov-io
Copy link

codecov-io commented Feb 27, 2021

Codecov Report

Merging #271 (e0e3f81) into master (fbf0c06) will decrease coverage by 0.03%.
The diff coverage is 91.30%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #271      +/-   ##
==========================================
- Coverage   94.08%   94.05%   -0.04%     
==========================================
  Files           6        6              
  Lines        2264     2286      +22     
==========================================
+ Hits         2130     2150      +20     
- Misses        134      136       +2     
Impacted Files Coverage Δ
scour/scour.py 94.50% <91.30%> (-0.04%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fbf0c06...e0e3f81. Read the comment docs.

When considering to prune attributes set to a default values, we
checked the `gradientUnits` attribute first to determine if that was
valid. Unfortunately, we omitted to check whether the `gradientUnits`
attribute was inherited via `xlink:ref`.  This commit corrects that
bug.

Closes: scour-project#225
Signed-off-by: Niels Thykier <[email protected]>
@nthykier nthykier force-pushed the gh-225-gradient-fix branch from e4c3bf1 to e0e3f81 Compare February 28, 2021 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

x2="1" is removed in <linearGradient
2 participants