Re: overflow issue with CSS and SVG specs

On Sep 23, 2008, at 1:51 PM, Robert O'Callahan wrote:

> On Wed, Sep 24, 2008 at 1:03 AM, Doug Schepers <schepers@w3.org>  
> wrote:
> Here are two proposals for rewording the offending passage:
>
> 1)
> svg:root { overflow: auto }
> svg:not(:root) { overflow: hidden }
> [[
> 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'.  The root 'svg' element shall have an
> initial 'overflow' property value of 'auto'.
> ]]
>
>
> 2)
> svg:not(:root) { overflow: hidden }
> [[
> The initial value for 'overflow' as defined in [CSS2-overflow] is
> 'visible', and this also applies to the root 'svg' element; however,  
> for
> child elements of an SVG document, 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'.
> ]]
>
> Which seems better to you?
>
> The latter. UAs already have magic for treating the viewport as  
> overflow:auto when the root element is overflow:visible.


I agree with Robert.

dave

Received on Tuesday, 23 September 2008 20:34:45 UTC