Closed
Bug 425868
Opened 17 years ago
Closed 17 years ago
Some svg files won't render in 3.0b4 but render fine in 2.0.0.12
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 404089
People
(Reporter: overbyte, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b4) Gecko/2008031317 Firefox/3.0b4
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b4) Gecko/2008031317 Firefox/3.0b4
The URL above contains many .xhtml files with inline svg. They display the pedigrees of horses just fine in Firefox 2 but are "fubar" in Firefox 3.0 beta 4. Yet, some complex stand-alone svg files in the same folder display fine in 3.0b4. I tried to view them as local files on my computer, and the results are the same as from the Internet.
Reproducible: Always
Steps to Reproduce:
1. Using Firefox 2.0.0.x, click on a .xhtml file in the URL folder. For example:http://www.thesokolows.com/colorresearch/pedigrees/COURIER.xhtml
2. See that the results are colored rectangles and ovals with lines and text.
3. Do the same in Firefox 3.0b4. See results: only one rectangle with an oval inside it, text spacing is wrong, missing many svg elements -- it's a mess.
Actual Results:
Bad, very bad, totally wrong rendering. Elements are missing. Text has wrong spacing.
Expected Results:
See rendering done by Firefox 2 for how it should look.
Surprisingly, rendering of the .svg files in that same folder looks good. So, I removed the html wrapper around the svg in one of the xhtml files and tried it with Firefox 3.0b4. The result was just as bad as it was when the svg was embedded inline in the xhtml.
Updated•17 years ago
|
Component: General → SVG
Product: Firefox → Core
QA Contact: general → general
Version: unspecified → Trunk
Comment 1•17 years ago
|
||
The files are invalid. It's Firefox 2 that is not displaying them correctly.
attributes that should contain numbers e.g. the x, y, x1, y1 below are not allowed to have any spaces in according to the SVG specification.
<text font-size=".8" x=" 5 " y=" 13.6 " >014446</text>
<line class="connectorStyle" x1=" -9 " y1=" 13 " x2=" -10 " y2=" 13 " />
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
| Reporter | ||
Comment 2•17 years ago
|
||
Thanks, Robert, I revised the program that generated the inline svg so the numbers inside the double-quotes have no surrounding whitespace, and that solved the problem. I was not aware of that part of the svg specs. I'm so glad it wasn't a Firefox bug.
Now the display looks like it did in Firefox 2, except for the problem I reported in an earlier bug report (bug #392233) which causes the text to have the wrong character spacing (pitch) and erratically overlays some characters on each other. The spacing was correct in Firefox 2 but still is wrong in Firefox 3.0b4. I'm following the progress on that bug thread.
One thing I did notice when trying the corrected files on Firefox 3.0b4: the text-only zoom didn't work for me, but the whole-display zoom did work. I'll look at filed bug reports and follow-through with that problem.
Comment 3•17 years ago
|
||
text zoom does not work on svg text by design. See bug 291785.
| Reporter | ||
Comment 4•17 years ago
|
||
Oh. I thought that the new way Firefox 3.0b4 handles zooming options on the zoom menu item meant that the user could selectively activate text-only zooming even on an svg graphic. I learned something again. Thanks.
You need to log in
before you can comment on or make changes to this bug.
Description
•