如果SVG内容在嵌入的< svg>默认? [英] Should SVG contents be visible outside an embedded <svg> by default?
问题描述
过去,我回答了一个关于谁是错误的关于SVG图像不是裁剪(溢出:隐藏
)在IE9中的问题,其中所有其他支持浏览器这样做。答案是这里。
今天,在审查HTML5 Boilerplate再次,我注意到他们声称他们[正确]溢出不被隐藏在IE9 与此位代码:
svg:not(:root){overflow:hidden; }
我正在寻找某人来确认或否认我的原始研究, HTML5或SVG规范。我找不到任何东西,但我想确定我没有错过任何东西。
我能找到的最好的是,他们正在尝试应用规则7 在这里,但这应该只适用于SVG文档,如通过 img
标签或直接加载时。
SVG规范可以说: http://www.w3.org/TR/SVG/styling.html#UAStyleSheet p>
看起来与Firefox和Chrome类似?
In the past I answered a question about "who was wrong" in regards to SVG images not being "cropped" (overflow: hidden
) in IE9, where all other supporting browsers did so. The answer is here.
Today, while reviewing HTML5 Boilerplate again, I noticed that they claim they "[correct] overflow not being hidden in IE9" with this bit of code:
svg:not(:root) { overflow: hidden; }
I'm looking for someone to confirm or deny my original research by pointing to some other note in either the HTML5 or SVG specs. I cannot find anything, but I want to be sure I am not missing something.
The best I can find is that they are trying to apply rule 7 here, but that should only apply to an SVG Document, like via an img
tag or when loaded directly.
The SVG specification has this to say: http://www.w3.org/TR/SVG/styling.html#UAStyleSheet
Seems similar to what Firefox and Chrome do no?
这篇关于如果SVG内容在嵌入的< svg>默认?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!