--- In svg-developers@yahoogroups.com, "t...@..." <t...@...> wrote: > > Here's what the specs say: > > http://www.w3.org/TR/SVG/masking.html#AutoClipAtViewportNotViewBox > > but what does it mean? Right, that's where I got the idea that overflow="hidden" would work. I didn't understand those specs either. :-/ > At least this works in Opera: > > <?xml version="1.0" encoding="UTF-8" ?> > <svg xmlns="http://www.w3.org/2000/svg" > xmlns:xlink="http://www.w3.org/1999/xlink" > version="1.1" > clip="rect(0,300,300,0)" > > > <title>overflow test</title> > <rect width="300" height="300" /> > <line stroke-width="10" x2="300" y2="300" stroke="red" /> > </svg> > > But that's probably not what you want, and it doesn't work in Firefox, Batik, Chrome, Inkscape or with librsvg. Thank you for that; I appreciate you taking the time to respond, however, for me running Opera 10.63 over Mac OS X 10.4.11, it did not work. I still see the corners of the line sticking out past the clipping rectangle. Here's a PNG image showing how Opera renders it for me:http://tinyurl.com/opera-overflow <http://tinyurl.com/opera-overflow> For completeness here's the (same as yours) SVG that rendered it:http://tinyurl.com/overflowA <http://tinyurl.com/overflowA> While Mac/Safari 4.1.3 renders the same as Opera for your SVG version, Safari lets me resize my window to that of the graphic, while Opera incongruously clips it severely. <commentary>As an occasional tinkerer with SVG, I've been very impressed with some of the work I've seen produced by members of this list, so I am flummoxed at the difficulty of accomplishing seemingly trivial tasks.</commentary> Ken Nellis > > --- In svg-developers@yahoogroups.com, Kenneth Nellis nellisks@ wrote: > > > > I'd like to draw a diagonal line from corner to corner and not have > > the width of the line extend outside the viewBox boundaries at the > > two corners, however they do despite my attempt to thwart it with > > overflow="hidden". What am I doing wrong? > > Here's an example that demonstrates the problem: http://tinyurl.com/ > > overflow-svg > > Ken Nellis > > > > [Non-text portions of this message have been removed] > > >
[Non-text portions of this message have been removed] ------------------------------------ ----- To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com -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: svg-developers-dig...@yahoogroups.com svg-developers-fullfeatu...@yahoogroups.com <*> To unsubscribe from this group, send an email to: svg-developers-unsubscr...@yahoogroups.com <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/