- From: SVG Working Group repository <cam+svgwgrepo@mcc.id.au>
- Date: Sat, 23 Aug 2014 05:01:42 -0700
- To: public-svg-wg@w3.org
details: https://svgwg.org/hg/svg2/rev/b3c7d4d64e7c branches: changeset: 699:b3c7d4d64e7c user: Chris Lilley <chris@w3.org> date: Sat Aug 23 13:57:03 2014 +0200 description: action-3640 diffstat: master/masking.html | 7 +++---- master/styling.html | 4 +++- 2 files changed, 6 insertions(+), 5 deletions(-) diffs (54 lines): diff --git a/master/masking.html b/master/masking.html --- a/master/masking.html +++ b/master/masking.html @@ -179,20 +179,19 @@ going to work in the furture. Sadly, the Note that the value <span class='prop-value'>hidden</span> still means that no scrolling user interface should be provided. </li> <li>The initial value for <a>'overflow'</a> as defined in [<a href="http://www.w3.org/TR/2011/REC-CSS2-20110607/visufx.html#overflow">CSS21-overflow</a>] is 'visible', and this applies also to the <a>rootmost 'svg' element</a>; however, for child elements of an SVG document, SVG's <a href="styling.html#UAStyleSheet">user agent style sheet</a> - overrides this initial value and sets the <a>'overflow'</a> property on - <a href="coords.html#ElementsThatEstablishViewports">elements that establish new viewports</a> - (e.g., <a>'svg'</a> elements), <a>'pattern'</a> elements and - <a>'marker element'</a> elements to the value <span class="prop-value">hidden</span>.</li> + overrides this initial value and sets the <a>'overflow'</a> property on the + <a>'svg'</a>, ,a>'image'</a>, <a>'pattern'</a> and <a>'iframe'</a> elements + to the value <span class="prop-value">hidden</span>.</li> </ul> <p>As a result of the above, the default behavior of SVG user agents is to establish a clipping path to the bounds of the initial <a href="coords.html#SVGViewport">viewport</a> and to establish a new clipping path for each <a href="coords.html#ElementsThatEstablishViewports">element which establishes a new viewport</a> and each <a>'pattern'</a> and <a>'marker element'</a> element.</p> diff --git a/master/styling.html b/master/styling.html --- a/master/styling.html +++ b/master/styling.html @@ -1175,20 +1175,22 @@ for elements in the SVG namespace for <a href='http://www.w3.org/TR/2011/REC-CSS2-20110607/media.html#visual-media-group'>visual media</a> ([<a href="refs.html#ref-CSS21">CSS21</a>], section 7.3.1). The user agent style sheet below is expressed using CSS syntax; however, user agents are required to support the behavior that corresponds to this default style sheet even if CSS style sheets are not supported in the user agent:</p> <pre> -svg, symbol, image, marker, pattern, foreignObject { overflow: hidden } +svg, image, pattern { overflow: hidden } svg { width:attr(width); height:attr(height) } </pre> +<p class="issue">Should this be for non-root svg elements only for web compat?</p> + <p class="issue">This needs to be reviewed. It should at least use <code>@namespace</code> to cause the rules to match only SVG elements. <code>attr(width)</code> won't do the right thing if the <span class="attr-name">'width'</span> attribute does not use a unit. And what about when the attributes are being animated? Presumably <code>attr()</code> doesn't look at animated values.</p>
Received on Saturday, 23 August 2014 12:02:09 UTC