Hi Robert, You might be right, I don't have a complete understanding of the spec. It does work in webkit, though, and this might be the source of my confusion. Would I be correct in thinking, then, that something like the following would be the correct way to specify an svg element that takes up the full width and height of the page?
<div style="width:100%;height:100%;"> <svg width="100%" height="100%"></svg> </div> In order to better understand this, I've been playing around with width/height=100% just on divs, without inner svg elements, and have been getting somewhat confusing results: http://msdl.cs.mcgill.ca/people/jake/tests/svgHeight100Percent_3.html http://msdl.cs.mcgill.ca/people/jake/tests/svgHeight100Percent_3.xhtml Why does the one page served up as html show a fullscreen div, while the other xhtml document shows nothing? Are width/height attributes on divs handled so differently between the HTML and XHTML specs? Results are consistent across FF, Opera and Webkit. I'd appreciate it if you could help me understand what's going on here, and let me know what you think is the correct way to specify an SVG element that takes up the whole viewport width and height. Thanks, Jake On Tue, Nov 18, 2008 at 5:34 PM, Robert Longson <[EMAIL PROTECTED]> wrote: > --- In [email protected], "Jake Beard" <[EMAIL PROTECTED]> wrote: >> >> Lively Kernel does this: >> >> http://research.sun.com/projects/lively/index.xhtml >> >> Under "More Complex Sample Widgets". (note that to get it to work in >> FF3, you need to go to use firebug to adjust the height on the main >> <svg> tag from "100%" to "2000px", or however tall you want the main >> canvas area to be, because height=100% on the <svg> tag is broken in >> FF ) > > I don't believe svg height="100%" is broken in firefox. The svg height > is 100% but the div size is the size of its contents so you have a > circular problem to calculate this. We therefore use a fallback size. > This is exactly what > http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width says we > should do doesn't it? If you think differently please explain, ideally > with references. > > Best regards > > Robert > > ------------------------------------ ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ----Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

