haikuwebkit/LayoutTests/svg/custom/painting-marker-07-f-inheri...

11 lines
321 B
XML
Raw Permalink Normal View History

2011-05-18 Rob Buis <rbuis@rim.com> Reviewed by Nikolas Zimmermann. Marker test from ietestcenter fails https://bugs.webkit.org/show_bug.cgi?id=60721 Change <marker> renderer creation behaviour to always create the renderer. This fixes the problem that no marker is rendered when display=none is set on the <marker>. The specification states that display=none should have no influence on <marker> usage: "The ‘display’ property does not apply to the ‘marker’ element; thus, ..., and ‘marker’ elements are available for referencing even when the ‘display’ property on the ‘marker’ element or any of its ancestors is set to none." Tests: svg/W3C-SVG-1.1-SE/painting-marker-07-f.svg svg/custom/painting-marker-07-f-inherit.svg * svg/SVGMarkerElement.h: (WebCore::SVGMarkerElement::rendererIsNeeded): 2011-05-18 Rob Buis <rbuis@rim.com> Reviewed by Nikolas Zimmermann. Marker test from ietestcenter fails https://bugs.webkit.org/show_bug.cgi?id=60721 Test cases where display=none is set on <marker>, i.e. directly or through ancestor. * platform/mac/svg/W3C-SVG-1.1-SE/painting-marker-07-f-expected.png: Added. * platform/mac/svg/W3C-SVG-1.1-SE/painting-marker-07-f-expected.txt: Added. * platform/mac/svg/W3C-SVG-1.1-SE/types-dom-05-b-expected.txt: * platform/mac/svg/custom/painting-marker-07-f-inherit-expected.png: Added. * platform/mac/svg/custom/painting-marker-07-f-inherit-expected.txt: Added. * svg/W3C-SVG-1.1-SE/painting-marker-07-f.svg: Added. * svg/custom/painting-marker-07-f-inherit.svg: Added. Canonical link: https://commits.webkit.org/76435@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@86791 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-05-18 21:40:16 +00:00
<svg xmlns="http://www.w3.org/2000/svg">
<defs>
<g display="none">
<marker id="testMarker" markerWidth="100" markerHeight="100" style="display:inherit">
<rect width="100" height="100" fill="green" />
</marker>
</g>
</defs>
<path d="M 10 10 L 0 0" marker-end="url(#testMarker)" />
</svg>