haikuwebkit/LayoutTests/css3/filters/filters-on-svg-element.html

10 lines
191 B
HTML
Raw Permalink Normal View History

REGRESSION (r188647): Teamtreehouse website sidebar buttons are not rendered https://bugs.webkit.org/show_bug.cgi?id=155400 <rdar://problem/24818602> Reviewed by Anders Carlsson. Source/WebCore: When we unprefixed CSS filters we accidentally stopped SVG elements that use the CSS filter shorthands from rendering. We still don't actually support the shorthands in this case, but we should render the element without the filter. Tests: css3/filters/filters-on-svg-element.html css3/filters/filters-on-svg-root.html * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::hasReferenceFilterOnly): Add this new function that tells us if we have the style of filter that we can handle in SVG content. * rendering/style/RenderStyle.h: * rendering/svg/SVGRenderingContext.cpp: (WebCore::SVGRenderingContext::prepareToRenderSVGContent): We can mark an element as ready to render if it has a shorthand filter. LayoutTests: Add tests with SVG content that uses CSS filter shorthands. These particular filters are no-ops so should not affect rendering. If they actually tried to do something you wouldn't see them work until we enable shorthand filters on SVG content. * css3/filters/filters-on-svg-element-expected.html: Added. * css3/filters/filters-on-svg-element.html: Added. * css3/filters/filters-on-svg-root-expected.html: Added. * css3/filters/filters-on-svg-root.html: Added. Canonical link: https://commits.webkit.org/173515@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@198075 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-03-13 01:55:45 +00:00
<style>
rect {
filter: blur(0);
}
</style>
<svg viewBox="0 0 20 20" width="100px" height="100px">
<rect width="20" height="20" fill="red"/>
<circle cx="10" cy="10" r="8"/>
</svg>