[Webkit-unassigned] [Bug 112717] SVG filters aren't zoomed properly when used within CSS

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 19 11:10:43 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=112717





--- Comment #1 from Dirk Schulze <krit at webkit.org>  2013-03-19 11:13:09 PST ---
Your observation is correct. Authors can define the resolution of the SVG Filter according to the spec. But this is not the only reason for setting m_filterResolution in Filter.h


Filtered elements can have transforms on it, which could increase the element size (transform="scale(2)"). The image for this element must be bigger to cover the bigger resolution. Both things, filter resolution and element resolution are set with:

    // Set the scale level in SVGFilter.
    filterData->filter->setFilterResolution(scale);

in RenderSVGResourceFilter (scale is  a FloatSize here).

Since CSS does not use RenderSVGResourceFilter, the CSS code must do this step on it's own. I assume that this is not the case at the moment.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list