Closed Bug 1216612 Opened 10 years ago Closed 2 years ago

SVG rendering: given a shape filled with a linear gradient, the gradient disappears when some transformation is applied

Categories

(Core :: SVG, defect)

40 Branch
x86_64
Linux
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mrcekets, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36 Steps to reproduce: I created an SVG document (with viewBox="0 0 28000 21000") which contains a rectangle filled with a linear gradient (with gradientUnits="userSpaceOnUse"). A transformation is applied to the rectangle (transform="translate(1100 0) scale(0.25)"). Actual results: The gradient fill is not shown. If I change the horizontal translation parameter from 1100 to 1000 the gradient fill is rendered correctly. To be exact every value greater than 1067 cause the gradient fill to not be rendered. Such a value depends on the scale value and the viewBox width (in a non-linear way). It does not depend on the rectangle position or size. When the scale parameter is >= 1 the gradient fill is rendered correctly. When `gradientUnits` is not set to `userSpaceOnUse` the gradient fill is rendered correctly. Expected results: The gradient should be rendered for any applied transformation even when gradientUnits="userSpaceOnUse".
Severity: normal → major
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
QA Whiteboard: qa-not-actionable

In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.

Severity: major → --

Seems OK now.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: