haikuwebkit/LayoutTests/svg/filters/filter-on-filter-for-text.svg

10 lines
316 B
XML
Raw Permalink Normal View History

2010-06-04 Dirk Schulze <krit@webkit.org> Reviewed by Nikolas Zimmermann. SVG filter on filter don't work https://bugs.webkit.org/show_bug.cgi?id=32708 Any child of <text> was not allowed to use the same filter as the text root. I couldn't found any reason in the SVG specification that legimitate this. Only batik also doesn't allow the same filter on the text root as on it's childs, while any other effect is still allowed. I removed this limitation so that the result looks like the result on Firefox. Test: svg/filters/filter-on-filter-for-text.svg * rendering/SVGRenderSupport.cpp: (WebCore::SVGRenderBase::prepareToRenderSVGContent): * rendering/SVGRenderSupport.h: * rendering/SVGRootInlineBox.cpp: (WebCore::SVGRootInlineBoxPaintWalker::SVGRootInlineBoxPaintWalker): (WebCore::SVGRootInlineBoxPaintWalker::chunkStartCallback): (WebCore::SVGRootInlineBox::paint): 2010-06-04 Dirk Schulze <krit@webkit.org> Reviewed by Nikolas Zimmermann. SVG filter on filter don't work https://bugs.webkit.org/show_bug.cgi?id=32708 Test that a filter can be used by the text root as well as on it's childs. * platform/mac/svg/filters/filter-on-filter-for-text-expected.checksum: Added. * platform/mac/svg/filters/filter-on-filter-for-text-expected.png: Added. * platform/mac/svg/filters/filter-on-filter-for-text-expected.txt: Added. * svg/filters/filter-on-filter-for-text.svg: Added. Canonical link: https://commits.webkit.org/51713@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@60689 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-06-04 18:02:13 +00:00
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<filter id="filter">
<feGaussianBlur stdDeviation="1" />
</filter>
</defs>
<text style="font-size:20px;filter:url(#filter);" x="30" y="30">This is for filter <tspan filter="url(#filter)">on filter</tspan>.</text>
</svg>