[Webkit-unassigned] [Bug 11225] No scroll bars are displayed for standalone SVG image

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 17 16:17:02 PDT 2008


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





------- Comment #27 from hyatt at apple.com  2008-09-17 16:17 PDT -------
The specs are not vague about this.

See:

http://www.w3.org/TR/SVG11/masking.html#OverflowProperty

"The initial value for 'overflow' as defined in [CSS2-overflow] is 'visible';
however, SVG's user agent style sheet overrides this initial value and set the
'overflow' property on elements that establish new viewports (e.g., 'svg'
elements), 'pattern' elements and 'marker' elements to the value 'hidden'."

Therefore the SVG spec is saying that

svg { overflow: hidden }

should be in the UA sheet.

CSS says:

http://www.w3.org/TR/CSS21/visufx.html#overflow

"UAs must apply the 'overflow' property set on the root element to the
viewport. HTML UAs must instead apply the 'overflow' property from the BODY
element to the viewport, if the value on the HTML element is 'visible'. The
'visible' value when used for the viewport must be interpreted as 'auto'. The
element from which the value is propagated must have a used value for
'overflow' of 'visible'."

Therefore the overflow:hidden on SVG root elements is applied to the viewport
and you end up not getting scrollbars.

The specs are obviously wrong, but nevertheless that's what they say right now.


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



More information about the webkit-unassigned mailing list