Bug 6093 - The outermost <svg> element needs to clip itself
Summary: The outermost <svg> element needs to clip itself
Status: RESOLVED DUPLICATE of bug 5358
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P4 Normal
Assignee: Eric Seidel (no email)
URL: http://openclipart.org/clipart//anima...
Keywords:
: 5977 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-12-15 02:09 PST by Eric Seidel (no email)
Modified: 2006-01-26 14:30 PST (History)
0 users

See Also:


Attachments
Patch that disallows overflow:hidden on <svg>s that are root elements. (851 bytes, patch)
2005-12-15 11:34 PST, Dave Hyatt
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2005-12-15 02:09:53 PST
According to the spec:

When an outermost SVG 'svg' element is stand-alone or embedded inline within a parent XML grammar 
which does not use CSS layout [CSS2-LAYOUT] or XSL formatting [XSL], the 'overflow' property on the 
outermost 'svg' element is ignored for the purposes of visual rendering and the initial clipping path is set 
to the bounds of the initial viewport.

We need to ignore overflow when being the "root" object, and do our own clipping to the viewport.  Hyatt 
is just about to fix it so that we do not apply overflow on the root object.
Comment 1 Eric Seidel (no email) 2005-12-15 02:20:31 PST
Actually, I have a patch which fixes both sides of this issue which I'll attach here once I can untangle it 
from the rest of the changes in my tree.
Comment 2 Dave Hyatt 2005-12-15 11:34:07 PST
Created attachment 5098 [details]
Patch that disallows overflow:hidden on <svg>s that are root elements.
Comment 3 Dave Hyatt 2005-12-15 11:36:35 PST
I landed the css portion of this patch.  There will still need to be additional code to set the initial clipping 
path to the bounds of the initial SVG viewport.
Comment 4 Eric Seidel (no email) 2006-01-15 03:12:15 PST
*** Bug 5977 has been marked as a duplicate of this bug. ***
Comment 5 Eric Seidel (no email) 2006-01-26 14:30:23 PST

*** This bug has been marked as a duplicate of 5358 ***