haikuwebkit/LayoutTests/svg/custom/inline-style-overrides-mark...

22 lines
677 B
XML
Raw Permalink Normal View History

SVG inline style of 'marker-*' does not override https://bugs.webkit.org/show_bug.cgi?id=84824 Source/WebCore: Reviewed by Nikolas Zimmermann. Properly handle CSSValueNone for clip-path, filter, mask and marker-* properties. Instead of bailing out, set the none value explicitly, since an earlier match may have set it to something other than none. Tests: svg/custom/inline-style-overrides-clipPath-expected.svg svg/custom/inline-style-overrides-clipPath.svg svg/custom/inline-style-overrides-filter-expected.svg svg/custom/inline-style-overrides-filter.svg svg/custom/inline-style-overrides-markers-expected.svg svg/custom/inline-style-overrides-markers.svg svg/custom/inline-style-overrides-mask-expected.svg svg/custom/inline-style-overrides-mask.svg * css/SVGCSSStyleSelector.cpp: (WebCore::StyleResolver::applySVGProperty): LayoutTests: Add tests for clip-path, filter, mask and marker-* properties. Reviewed by Nikolas Zimmermann. * svg/custom/inline-style-overrides-clipPath-expected.svg: Added. * svg/custom/inline-style-overrides-clipPath.svg: Added. * svg/custom/inline-style-overrides-filter-expected.svg: Added. * svg/custom/inline-style-overrides-filter.svg: Added. * svg/custom/inline-style-overrides-markers-expected.svg: Added. * svg/custom/inline-style-overrides-markers.svg: Added. * svg/custom/inline-style-overrides-mask-expected.svg: Added. * svg/custom/inline-style-overrides-mask.svg: Added. Canonical link: https://commits.webkit.org/102569@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@115432 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-27 15:05:21 +00:00
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<style type="text/css"><![CDATA[
line {
stroke: green;
stroke-width: 50px;
marker-start: url(#marker);
marker-mid: url(#marker);
marker-end: url(#marker);
}
]]>
</style>
<defs>
<marker id="marker" viewBox="0 0 10 10" refX="1" refY="5"
markerUnits="strokeWidth" orient="auto"
markerWidth="2" markerHeight="2">
<polyline points="0,0 10,0 10,10 0,10 0,0" fill="red" />
</marker>
</defs>
<line x1="0" y1="0" x2="100" y2="100" style="marker-start: none;marker-mid: none;marker-end: none;" />
</svg>