Closed
Bug 295025
Opened 19 years ago
Closed 17 years ago
buildin svg renderer creates scrollbars around image instead of scaling the image
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: ortylp, Unassigned)
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050512 Firefox/1.0.4 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050512 Firefox/1.0.4 An SVG object rendered by builtin SVG engine is not scaled to the given width and height but instead shows scrollbars. The scaling of the image is the default behaviour of all tested by me plugin/browser combinations mozilla/opera/konquerror|ksvg/adobesvg|linux. Reproducible: Always Steps to Reproduce: 1. load attached html and svg files in firefox with SVG enabled 2. try different zoom levels (reloading page each time) Actual Results: There are scrollbars around the image. Expected Results: Image should be scaled to the size given as attributes/style in <object> node the files: === bugreport.svg ===================== <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN" "svg-20001102.dtd"> <svg viewBox="0 0 800 400" xmlns:xlink="http://www.w3.org/1999/xlink"> <rect x="5" y="5" width="790" height="390" fill="green"/> <rect x="2" y="2" width="796" height="396" fill="none" stroke="blue"/> </svg> ======================================= ==== bugreport.html =================== <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head><title>Scrollbars around svg</title> </head> <h1>Below is a frame with an svg object — it shows scrollbars instead of scaling the image properly.</h1> <p>Try different zoom levels and reload page after each zoom level change. To get rid of the frames the zoom level must be large enough.</p> <p style="border: 1px; border-style:solid"><object data="bugreport.svg" type="image/svg+xml" style="width: 80ex; height: 40ex;" > </object></p> </body> </html> =======================================
-> Core: SVG
Assignee: nobody → general
Component: General → SVG
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → 1.7 Branch
Comment 2•19 years ago
|
||
Comment 3•19 years ago
|
||
Updated•19 years ago
|
Attachment #187888 -
Attachment mime type: image/svg+xml → text/html
Comment 4•19 years ago
|
||
I don't see any scrollbars, can you retest Paul?
Updated•17 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•