Matthew Cruickshank wrote:
[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.

i looked at your tests and the text is supposed to render fully inside the graphic without scrolling; i hate to say this, but like in the opera 9.01 version. the scroll bars are still there in your examples, at least on my machine.

i guess i said it in disjointed chunks, opera rendered the page as written with the css. ie6 and mozilla.13 rendered the image but not the z-indexed text. ie6, i guess, does not handle z-indexing very well, so the page does not render as written. mozilla.13 evidently does not render z-indexing either. however, i do get the message in the status bar that there is an "unrecognized doctype and the page may not display properly". why is that? i don't have a clue. opera and firefox don't give that warning.

i really didn't mean to start a firefox is better than opera or opera is
better than firefox war.  i am just expressing my observations in the
two renderings; and firefox is rendering the page in a way not expected.

now if there had been something wrong with my coding, i'm sure someone
would have said something.  may i safely assume that there is nothing
wrong with the coding?  what i am hearing is the information in the svg
file is causing the problem; but why only in firefox, at least on my machine?

another question, is z-indexed text supposed to scroll over a background? is any z-indexed content supposed to scroll? if not, then why does firefox scroll in this case? i'm trying to learn how to over come this problem and that is why i asked for help. truly i am trying not to be argumentative, just understood, whether we agree or not. i'm thinking about the blurb that i read and this could be the reason for the odd rendering.

do i need an ie hack to make the z-indexed text show? does mozilla also need a hack for z-indexed content? would you or someone point me in the direction of how this is done? i'd rather not use a hack, but if i have to...

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
******************************************************

Reply via email to