Closed Bug 355301 Opened 18 years ago Closed 18 years ago

firefox should scale the size of any svg file so it fits the size of the object tag or iframe

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 288276

People

(Reporter: vangeuns, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.0.7) Gecko/20060922 Firefox/1.5.0.7
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.0.7) Gecko/20060922 Firefox/1.5.0.7

It would be very helpful, if Firefox just scaled the size of any .svg (Scalable Vector Graphic(s)) to match the size of the <object> tag or <iframe> that embeds it into the HTML or XHTML page.
Using the SVG format does not have any advantages over bitmap formats like PNG at the current level of implementation.


Reproducible: Always

Steps to Reproduce:
1. Embed your .svg into (X)HTML using <object> or <iframe>.
2. Set the attributes heigt and width of the embedding tag to a value smaller than the values specified directly in the SVG file.

Actual Results:  
You will see just a section of the SVG file an scroll bars.

Expected Results:  
I expected to see the full SVG image scaled to match the size of the embedding tag.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de">
<head>
</head>
<body>
<object data="http://openclipart.org/clipart//computer/icons/firefox.svg" width="50" height="50" />
</body>
</html>

*** This bug has been marked as a duplicate of 288276 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.