W3C home > Mailing lists > Public > www-svg@w3.org > July 2010

[SVG11] 'overflow: auto' on SVG elements

From: L. David Baron <dbaron@dbaron.org>
Date: Wed, 30 Jun 2010 18:26:28 -0700
To: www-svg@w3.org
Message-ID: <20100701012628.GA16649@pickering.dbaron.org>
http://www.w3.org/TR/SVG11/masking.html#OverflowProperty says that for
SVG elements, 'overflow: auto' is equivalent to 'visible'.

This is not particularly compatible with the CSS plan to split
'overflow' into 'overflow-x' and 'overflow-y' (which I believe are
already implemented in multiple implementations) in 
http://www.w3.org/TR/css3-box/#overflow , which says:
  # The computed values of ‘overflow-x’ and ‘overflow-y’ are the
  # same as their specified values, except that some combinations
  # with ‘visible’ are not possible: if one is specified as
  # ‘visible’ and the other is ‘scroll’ or ‘auto’, then ‘visible’ is
  # set to ‘auto’.  The computed value of ‘overflow’ is equal to the
  # computed value of ‘overflow-x’ if ‘overflow-y’ is the same;
  # otherwise it is the pair of computed values of ‘overflow-x’ and
  # ‘overflow-y’. 
With this split, it will be possible for one side to be 'auto' and
the other side to be 'hidden' or 'scroll', which is a perfectly
logical combination.

It seems to me this would be much better if 'auto' were treated in
SVG like 'scroll' and 'hidden', which it is much more similar to in
the CSS model than 'visible'.  In CSS, 'auto', 'scroll', and
'hidden' have in common that the contents of the element do not
extend outside it; the only thing that varies is whether there's a
scrolling mechanism to reach that content.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Thursday, 1 July 2010 01:26:58 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:45 GMT