Closed Bug 401689 Opened 17 years ago Closed 17 years ago

stroke-width always relative to current user coordinate

Categories

(Core :: SVG, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: com, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.8) Gecko/20071008 Firefox/2.0.0.8 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.8) Gecko/20071008 Firefox/2.0.0.8 A stroke-width seem to always change in size relative to the current user coordinate system, even when the length that is specified includes a unit. I tested this with a line. The relevant specifications are found at: http://www.w3.org/TR/SVG11/painting.html#StrokeProperties http://www.w3.org/TR/SVG11/types.html#DataTypeLength "If the <length> is expressed as a value without a unit identifier (e.g., 48), then the <length> represents a distance in the current user coordinate system. If one of the unit identifiers is provided (e.g., 12mm), then the <length> is processed according to the description in Units." When I have a line in a viewbox 400,400 and a line with stroke-width="1px" (or 1mm), and the viewbox is then modified to 100,100, then you can see how the width of the stroke is increased, while the specification says that it should not do that. Reproducible: Always
Could you attach testcases showing the issue please?
If you change the viewbox as you suggest you are effectively magnifying what you see so the widths should increase.
As per discussion in mozilla svg newsgroup, units simply act as scaling factors rather than being absolute dimensions.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.