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

Re: overflow issue with CSS and SVG specs

From: Robert O'Callahan <robert@ocallahan.org>
Date: Tue, 23 Sep 2008 18:51:43 +0000
Message-ID: <11e306600809231151q18df76b1x7a2ebd139376f136@mail.gmail.com>
To: "Doug Schepers" <schepers@w3.org>
Cc: "David Hyatt" <hyatt@apple.com>, "CSS WG" <w3c-css-wg@w3.org>, public-svg-wg@w3.org, "David Singer" <singer@apple.com>, "Maciej Stachowiak" <mjs@apple.com>
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

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