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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 26 12:22:09 PDT 2013


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





--- Comment #10 from ben at abmcd.com  2013-07-26 12:21:58 PST ---
This part of the 1.1 spec is pretty contradictory. For "initial value" it says "see prose". Down in yonder prose:

1) "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)."

That seems pretty clear. "Visible" declaration = no clipping rectangle.

2) "The initial value for ‘overflow’ as defined in [CSS2-overflow] is 'visible', and this applies also to the root ‘svg’ element;"

Again, seems crystal clear. "Visible" is the initial value for root-level. Plain as day. I would like to take this at face value...

...but then the sentence you quote from just underneath rolls that all back (!):

"As a result of the above, the default behavior of SVG user agents is to establish a clipping path to the bounds of the initial viewport and to establish a new clipping path for each element which establishes a new viewport and each ‘pattern’ and ‘marker’ element."

So where does that leave things? Maybe the compromise reading we could live with for now is that on root-level svgs, there is a clipping rectangle created, but that clipping rectangle isn't actually clipping anything initially, because "visible" is the initial value.

But then you're totally right that the UA stylesheet flatly contradicts the Clipping & Masking spec, recommending "hidden". Also, the Clipping spec makes a fine distinction between root-level and not-root svg, and the UA stylesheet makes no such distinction. This could really use clarification and consistency in SVG2.

[Reading this as "prose", as suggested, it's hard not to infer that "visible" was originally written as the initial value, for consistency across CSS (a beautiful thing), but that the last sentence got tacked on by implementers who understandably didn't want to deal with the arduous complexities of overflow :) ]

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