[SVG11] 'overflow: auto' on SVG elements

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 UTC