[Webkit-unassigned] [Bug 96163] SVG does not respect overflow:visible

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 12 21:01:02 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=96163





--- Comment #3 from ben at abmcd.com  2012-11-12 21:02:47 PST ---
Thanks, Dirk. Glad I caught your eye here. Point by point:

"You need to see the overflow property together with the clip property."

Not according to the spec. See bullet three from the above link: "If the ‘overflow’ property has a value other than hidden or scroll, the property has no effect (i.e., a clipping rectangle is not created)." In other words, when "overflow" is "auto" or "visible", there should be no clipping rectangle at all.

"This clip property is set to the boundaries of the <SVG> element and clips all content. The root element is special anyway,"

It's special in this context mainly because of bullet 7: "The initial value for ‘overflow’ as defined in [CSS2-overflow] is 'visible', and this applies also to the root ‘svg’ element." But again, this is not the current implementation in any browser.

"but IIRC it will work for nested <SVG> elements in FF nightly, if you make the clipping region big enough or set the property to 'auto'"

Not according to my experiments. In both chrome Version 25.0.1323.1 canary and FF 19.0a1 neither expanding the clipping rectangle nor setting "clip" to "auto" make overflow content visible. See:

http://jsfiddle.net/HRsvX/36/

(The red triangle should be fully visible outside the div for all three svgs.)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list