Summary: | Scaling problems with viewBox attributes | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Julien Palmas <julien.palmas> | ||||||||||||||
Component: | SVG | Assignee: | Eric Seidel (no email) <eric> | ||||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||||
Severity: | Normal | CC: | eric | ||||||||||||||
Priority: | P3 | ||||||||||||||||
Version: | 420+ | ||||||||||||||||
Hardware: | Mac | ||||||||||||||||
OS: | OS X 10.4 | ||||||||||||||||
Attachments: |
|
Description
Julien Palmas
2005-10-10 13:14:52 PDT
Created attachment 4296 [details]
Reduced test case
The grey rectangle should be scaled inside the black one, but no scaling is
done
Created attachment 4297 [details]
Expected result
Result obtained with KDE
Both FireFox and Opera render this svg just liek we do... I'm not sure what's "expected" Created attachment 4326 [details]
Set correct default value for align
This may possible help with this bug...
Created attachment 4327 [details]
Another attempt at fixing this svg
Note: this patch is not ready for review!
It is a quick and dirty test to see if it fixes the .svg.
A cleaner way should be found, maybe changing SVGLengthImpl etc.
Created attachment 4328 [details]
Expected result
Created attachment 4332 [details]
fixes the bug
This patch is actually joining the 2 patches previously posted by rwlbuis.
The format is now correct.
*** Bug 5343 has been marked as a duplicate of this bug. *** Comment on attachment 4332 [details]
fixes the bug
Looks good. rwlbuis explained this all to me on IRC. Basically instead of
passing itself as a reference (off of which to base % calculations),
SVGSVGElement is passing the nearest viewport.
Landed. |