- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Wed, 10 Oct 2012 14:19:14 -0700
- To: Dirk Schulze <dschulze@adobe.com>
- Cc: "www-svg@w3.org list" <www-svg@w3.org>
On Wed, Oct 10, 2012 at 2:07 PM, Dirk Schulze <dschulze@adobe.com> wrote: > Hi, > > I am looking at the definition of the 'overflow' property in SVG2[1]. According to the spec, the initial value is 'visible'. In practice browsers act as if the initial value is 'hidden'. FF and Safari/Chrome also say that the initial value is 'hidden'. Just Opera states it is 'visible' but still acts as if 'hidden' was set. You can see it with the following example: > > Tested with following example: > > <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="500" height="500"> > <rect width="500" height="500" fill="red"/> > <svg width="200" height="200"> > <rect width="500" height="500" fill="green" style="clip: rect(0 400px 400px 0)"/> > </svg> > </svg> > > and set overflow="visible" on the inner SVG element afterwards. You will notice the difference in all browsers. And all browsers have the same rendering output. > > I would suggest making 'hidden' the default value. > > Greetings, > Dirk > > [1] https://svgwg.org/svg2-draft/masking.html#OverflowAndClipProperties You're confusing "initial value" with "default value, before authors mess with it". The former is defined by the property, the latter is affected by UA stylesheets. <svg> elements default to overflow:hidden because they're set that way by the UA stylesheet. You can't change the initial value of 'overflow' anyway - it would break the entire web. ~TJ
Received on Wednesday, 10 October 2012 21:20:02 UTC