Bug 1645753 - Add color as a mapped attribute for gradient stops r=heycam

Differential Revision: https://phabricator.services.mozilla.com/D79665
This commit is contained in:
longsonr 2020-06-18 00:34:23 +00:00
parent 77bf0111ce
commit 30697d85fe
2 changed files with 2 additions and 5 deletions

View file

@ -50,7 +50,8 @@ SVGElement::NumberAttributesInfo SVGStopElement::GetNumberInfo() {
NS_IMETHODIMP_(bool)
SVGStopElement::IsAttributeMapped(const nsAtom* name) const {
static const MappedAttributeEntry* const map[] = {sGradientStopMap};
static const MappedAttributeEntry* const map[] = {sColorMap,
sGradientStopMap};
return FindAttributeDependence(name, map) ||
SVGStopElementBase::IsAttributeMapped(name);

View file

@ -1,4 +0,0 @@
[stop-color-inheritance-currentcolor.svg]
["currentcolor" is inherited as a keyword]
expected: FAIL