mgansler / mscgen

Automatically exported from code.google.com/p/mscgen
GNU General Public License v2.0
1 stars 0 forks source link

camel case "viewBox" attribute incorrectly generated as lowercase "viewbox" in SVG output. #41

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. generate any msc file as SVG using the -T svg switch
2. embed the object in a html page
3. try to scale it using html

What is the expected output? 
svg can be scaled arbitrarily in HTML

What do you see instead?
svg cannot be scaled properly

What version of the product are you using? On what operating system?
0.17, Windows XP

Please provide any additional information below, including sample input
file:

There are 2 problems actually.

The first is the one in the title that the mixed case "viewBox" attribute is 
incorrectly generated as lowercase "viewbox". This causes rendering problems in 
both firefox and chrome browsers.

The second is that in addition to the viewBox, the svg also has a fixed width 
and height. these should be removed or made 100%. This causes problems in 
chrome browser.

Actually that second one you might want to make optional because if you open 
the SVG standalone in firefox (not in a html page), then having the fixed width 
and height attributes is arguably better. 

I've attached a test.html file and associated svgs, so you can see what I mean 
if you use those browsers to view the html file and the svg files.

Original issue reported on code.google.com by dunbar....@gmail.com on 30 Jul 2010 at 9:42

Attachments:

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r109.

Original comment by Michael....@gmail.com on 16 Aug 2010 at 4:31

GoogleCodeExporter commented 8 years ago
This should now be fixed.
I tried your example in Firefox and also installed Chrome and both look good.

Thanks for the good bug report.

Original comment by Michael....@gmail.com on 16 Aug 2010 at 4:32