Matthew Cruickshank wrote:
[EMAIL PROTECTED] wrote:
if this is a scalable vector graphic, then why doesn't firefox scale it?
Because even though it is a vector an SVG gets to say what resolution it
should be rendered at. In this case your svg file is requesting a
specific width of "900px" and height of "900px" (see the root SVG element).
SVGs can choose to not specify width/height so that they will be resized
(as you want) and they can also choose whether they should be skewed
when the resized ratio of width:height doesn't match the original
image's width:height ratio.
In your case I think it's your SVG file at fault, not Firefox. When
fixing your SVG one technique I've found useful is to edit while
refreshing in Firefox. Once you get the width/height constraints removed
it should resize as you resize your browser window... good debugging
feedback :)
The feature of obeying the SVG's requested width/height is that it
allows SVG equivalents of image sprites
<http://www.alistapart.com/articles/sprites>, and that it follows the
established rules of CSS width/height being a way of controlling CSS
Overflow rather than the size of the embedded content.
opera 9.01 is the only browser to render the page properly. in my
book, that doesn't speak very highly of the beloved firefox. maybe,
just maybe, opera has taken over as "the" standards compliant browser.
what we do is not rocket science. firefox claims to be the standard
in standards compliant browsers, yet it can't get what's coming in the
future of graphics correct. i know they are still working on firefox
to render svg natively, but opera has beaten them to the punch and far
surpassed them in setting a much higher standards compliance.
oh well, i understand that a lot of catch up has to be done by the
browser industry. it's just frustrating at the moment. i must be
patient and continue my work and research, but i want it NOW! ;^)
What Firefox is doing is the correct thing, so IMO you're blaming the
wrong people.
would you look at the image now with css constraints /**/ out? a year
ago i put up a svg file and set the width to 100% and the file sized to
the window regardless of resolution. this one doesn't seem to do that.
what i read the other night on the w3c site on svg is that there is
now a way to set the viewbox to where the file will size with the users
screen resolution. guess i gotta go dig some more.
as far as firefox goes and blaming the wrong people, i'm not blaming
anybody, just stating an observation. i read the blurb about firefox
working out problems they are having with the svg format, which tells me
that firefox isn't really that right on. opera on the other hand is
rendering the page as written, which tells me that it is closer to
standards compliance in this situation than is firefox. again, not
blaming, just stating an observation and fact.
i think that the development community has put on blinders as far as
firefox goes setting the standard. that's my opinion. yes, i admit
that in my frustration i lashed out at firefox, but it still behaves in
most cases, just not this one. i check all of my pages in firefox first
because that seems to be the browser of choice for non-ie users. now i
don't get into fancy css, so i don't get into too much trouble.
when i was starting to learn and apply css and standards it was a
frustrating struggle to make things look right in ie, firefox, mozilla
and opera. in over two years browsers have improved dramatically and
now ms is getting on board. the problems we had then are almost gone
and there is less and less reasons to hack. again, because i don't get
fancy with design and layout, now what i code looks the way i write it
in the three browsers, four if you include mozilla; and when i tested
seamonkey, same correct look.
i appreciate your time to look at this problem i am trying to solve.
there may not be a solution for firefox or ie or mozilla at the moment.
regards,
dwain
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************