Bug 784467 - Switch computed style's url(invalid-url:) to [css3-values]'s url(about:invalid). r=dbaron

This commit is contained in:
Emmanuele Bassi 2012-10-17 15:33:57 -04:00
parent 3b968195fd
commit 98dfc6ddf1

View File

@ -83,9 +83,11 @@ nsROCSSPrimitiveValue::GetCssText(nsAString& aCssText)
tmpStr);
tmpStr.AppendLiteral(")");
} else {
// XXXldb Any better ideas? It's good to have something that
// doesn't parse so that things round-trip "correctly".
tmpStr.Assign(NS_LITERAL_STRING("url(invalid-url:)"));
// http://dev.w3.org/csswg/css3-values/#attr defines
// 'about:invalid' as the default value for url attributes,
// so let's also use it here as the default computed value
// for invalid URLs.
tmpStr.Assign(NS_LITERAL_STRING("url(about:invalid)"));
}
break;
}