Re: overflow issue with CSS and SVG specs

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.

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]

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