buildin svg renderer creates scrollbars around image instead of scaling the image

RESOLVED WORKSFORME

Status

()

RESOLVED WORKSFORME
14 years ago
11 years ago

People

(Reporter: ortylp, Unassigned)

Tracking

1.7 Branch
All
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

14 years ago
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 &mdash; 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>
=======================================

Comment 1

14 years ago
-> Core: SVG
Assignee: nobody → general
Component: General → SVG
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → 1.7 Branch
Created attachment 187887 [details]
bugreport.svg
Created attachment 187888 [details]
bugreport.html
Attachment #187888 - Attachment mime type: image/svg+xml → text/html
I don't see any scrollbars, can you retest Paul?
Status: UNCONFIRMED → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.