gradientUnits userSpaceOnUse using wrong viewport
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When a gradient uses gradientUnits=
Therefore when specifying the gradient vector using percentages of the viewport, the SVG is rendered wrongly.
See the testcases for details.
- testcase1 specifies a linear gradient with <linearGradient gradientUnits=
- testcase2 specifies a linear gradient with <linearGradient gradientUnits=
As long as the viewport doesn't extend from (0,0) to (1,1) - the testcase should have a viewport from (0,0) to (256,256) - those gradients should render differently. In Inkscape 0.48.4 they render exactly the same however. When setting x2 from the XML editor Inkscape even automatically changes every percentage value automatically assuming the viewport would extend to (1,1), e.g. e.g. 70% to 0.7.
tags: | added: gradient svg |
summary: |
- gradienUnits userSpaceOnUse using wrong viewport + gradientUnits userSpaceOnUse using wrong viewport |
Changed in inkscape: | |
status: | New → Confirmed |
Just stumbled across this behavior again when investigating [1].
Could somebody firm with the SVG spec confirm whether this is an actually bug or if I'm misinterpreting what should be the correct rendering in this case?
[1] https:/ /github. com/scour- project/ scour/issues/ 66