зеркало из https://github.com/mozilla/gecko-dev.git
Reject duplicate keywords for 'text-decoration'. (Bug 470704) r+sr=bzbarsky
This commit is contained in:
Родитель
4cda588725
Коммит
409bc375af
|
@ -7627,7 +7627,12 @@ CSSParserImpl::ParseTextDecoration(nsCSSValue& aValue)
|
|||
PRInt32 index;
|
||||
for (index = 0; index < 3; index++) {
|
||||
if (ParseEnum(keyword, nsCSSProps::kTextDecorationKTable)) {
|
||||
intValue |= keyword.GetIntValue();
|
||||
PRInt32 newValue = keyword.GetIntValue();
|
||||
if (newValue & intValue) {
|
||||
// duplicate keyword is not allowed
|
||||
return PR_FALSE;
|
||||
}
|
||||
intValue |= newValue;
|
||||
}
|
||||
else {
|
||||
break;
|
||||
|
|
|
@ -26,7 +26,6 @@ var gKnownFails = {
|
|||
"richness": [ " -0.01", "100.2", "108", "-3" ],
|
||||
"stress": [ " -0.01", "100.2", "108", "-3" ],
|
||||
"volume": [ " -0.01", "100.2", "108", "-3" ],
|
||||
"text-decoration": [ "line-through blink line-through" ],
|
||||
"stroke-miterlimit": [ "0.9", "0" ]
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче