[EMAIL PROTECTED] wrote:
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 I said it's to do with the width and height attributes on the root
SVG element, not CSS.
Here's some versions with SVG's width/height removed...
http://holloway.co.nz/wellypug/svg/svg-test1a.html
http://holloway.co.nz/wellypug/svg/svg-test1b.html
In test1a the SVG now scales based on CSS constraints which are a fixed
pixel size. In test1b the CSS constraints are percentage based rules,
and as you resize the browser window you'll see that preserving the
aspect ratio means that the text will only line-up some of the time.
http://holloway.co.nz/wellypug/svg/svg-test2.html
This one resizes a second SVG without an aspect ratio, and keeps the
text pretty-much where it should be regardless of the browser window.
I don't have Opera/Safari to test on unfortunately, so I don't know if
this will work on them.
as far as firefox goes and blaming the wrong people, i'm not blaming
anybody, just stating an observation. [... ] 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.
Yeah but the point is you're saying that Opera is rendering the page as
written and that this is a sign of standards compliance, whereas I just
think your SVG was a bit wrong and you're blaming Firefox for following
standards / praising Opera for disobeying.
.Matthew Cruickshank
http://docvert.org << Opensource .DOC to HTML converter
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************