Closed Bug 301604 Opened 19 years ago Closed 19 years ago

SVG image not displayed when page revisited javascript console Error in parsing value for property 'font-size'. Declaration dropped.

Categories

(Core :: SVG, defect)

1.8 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: w.langdon, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050717 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050717 Firefox/1.0+


Error: Error in parsing value for property 'font-size'.  Declaration dropped.
Source File: http://www.carto.net/papers/svg/samples/text.svg
Line: 0

Reproducible: Always

Steps to Reproduce:
1.load http://www.carto.net/papers/svg/samples/text.shtml using Deer Park
2. Deerpark displays image (left) and text ok. No errors reported.
3. Right click on image. Select This Frame|Show only this frame
4. SVG image displayed ok. No Errors reported on Javascript console.
5. Press back (green arrow)

Actual Results:  
Previous page is displayed without SVG image.
Many (10?) error messages appear in javascript console. Like this one:
Error: Error in parsing value for property 'font-size'.  Declaration dropped.
Source File: http://www.carto.net/papers/svg/samples/text.svg
Line: 0

Expected Results:  
display both SVG image and text exactly as it did when the page was first shown.
No error should be reported on javascript console

WindowsNT runing service pack 2
I have seen something similar on other examples but this example is simple and
reprducible.
Assignee: nobody → general
Component: General → SVG
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → Trunk
> Previous page is displayed without SVG image.

Works fine over here...

> Many (10?) error messages appear in javascript console.

Yep.  "font-size:20" is not valid text/css, so we report the error.  The page should be fixed.
(In reply to comment #1)
> > Previous page is displayed without SVG image.
> 
> Works fine over here...

Just tried it again using a new installation of Deerpark 1.0+ 20050712
and it works! 
However some unexpected differences:
1. loads But now 10 errors are reported on JavaScript console immediately.
3. ten errors reported when right click.
5. Using back arrow displays whole page (ie including large SVG image) and no
   additional errors are reported on javascript console.

Bill
this page is years old. should (will!) be fixed indeed.
Hi Bill, this is invalid I'm afraid. Please don't assume that just because a document doesn't render in Moz that it's because of a bug in our implementation. Errors in the JavaScript console usually show there is an error in the SVG, not in moz. The SVG out on the web is incredibly buggy. Hence the need for the document at

  http://jwatt.org/svg/authoring/

In the case of the document you link to, the author needs to fix their SVG according to the following sections of the authoring guidelines I just linked to.

  http://jwatt.org/svg/authoring/#avoid-css
  http://jwatt.org/svg/authoring/#css-and-units

The reason you don't get the errors the second time may be because of the new fastback feature. (When you press the back buttons documents are loaded from an in memory cache, not on disk cache, so they aren't reparsed.)

Why don't you update to Firefox 1.5 release candidate 2? Things have moved on a fair bit from your current version. As well as trying only to file bugs on things you know aren't errors in the SVG, please make sure you file bugs only on recent builds.

  http://www.mozilla.org/projects/firefox/

With that installed, updating to the final version (when it's released) will simply be a case of clicking Help > Check for Updates...

-> invalid
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
OS: Windows XP → All
Hardware: PC → All
Resolution: --- → INVALID
Version: Trunk → 1.8 Branch
You need to log in before you can comment on or make changes to this bug.