W3C home > Mailing lists > Public > public-svg-wg@w3.org > July to September 2008

Re: overflow issue with CSS and SVG specs

From: David Hyatt <hyatt@apple.com>
Date: Tue, 23 Sep 2008 19:39:15 +0000
To: robert@ocallahan.org
Cc: Doug Schepers <schepers@w3.org>, CSS WG <w3c-css-wg@w3.org>, public-svg-wg@w3.org, David Singer <singer@apple.com>, Maciej Stachowiak <mjs@apple.com>
Message-id: <4FCAE92F-4E68-446B-A6EB-2EDB76C3B55B@apple.com>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:20:09 UTC