haikuwebkit/LayoutTests/svg/custom/fill-opacity-rgba.svg

4 lines
169 B
XML
Raw Permalink Normal View History

2010-06-05 Jonathan Kliegman <kliegs@chromium.org> Reviewed by Dirk Schulze. SVG doesn't support rgba colors https://bugs.webkit.org/show_bug.cgi?id=16183 Enabled processing of rgba, hsl and hsla color specifications for SVG files. SVG spec calls for CSS2 but common usage and other browsers suppor CSS3 colors being used in SVG files * platform/mac/svg/custom/fill-opacity-hsl-expected.checksum: Added. * platform/mac/svg/custom/fill-opacity-hsl-expected.png: Added. * platform/mac/svg/custom/fill-opacity-hsl-expected.txt: Added. * platform/mac/svg/custom/fill-opacity-rgba-expected.checksum: Added. * platform/mac/svg/custom/fill-opacity-rgba-expected.png: Added. * platform/mac/svg/custom/fill-opacity-rgba-expected.txt: Added. * svg/custom/fill-opacity-hsl.svg: Added. * svg/custom/fill-opacity-rgba.svg: Added. 2010-06-05 Jonathan Kliegman <kliegs@chromium.org> Reviewed by Dirk Schulze. SVG doesn't support rgba colors https://bugs.webkit.org/show_bug.cgi?id=16183 Enabled processing of rgba, hsl and hsla color specifications for SVG files. SVG spec calls for CSS2 but common usage and other browsers suppor CSS3 colors being used in SVG files Removed unused svg paramater from CSSParser::parseColorFromValue Tests: svg/custom/fill-opacity-hsl.svg svg/custom/fill-opacity-rgba.svg * css/CSSParser.cpp: (WebCore::CSSParser::parseColorFromValue): * css/CSSParser.h: * css/SVGCSSParser.cpp: (WebCore::CSSParser::parseSVGValue): (WebCore::CSSParser::parseSVGPaint): (WebCore::CSSParser::parseSVGColor): * svg/SVGColor.cpp: (WebCore::SVGColor::colorFromRGBColorString): Canonical link: https://commits.webkit.org/51775@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@60752 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-06-05 14:29:57 +00:00
<svg width="100px" height="100px" version="1.1" xmlns="http://www.w3.org/2000/svg">
<rect x="20" y="20" width="60" height="60" fill="rgba(0, 255, 0, 0.5)" />
</svg>