зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1295456 - Support percentage opacity value in CSS color functions. r=dholbert
--HG-- extra : rebase_source : 79bf692da80a5ea861482e9bc021834f60b6d81a extra : histedit_source : 384f41d812fecf511be8b319d91a687e9c02673d
This commit is contained in:
Родитель
52edf921c1
Коммит
a0a437f47c
|
@ -98,6 +98,7 @@ PEColorNotColor=Expected color but found ‘%1$S’.
|
|||
PEColorComponentEOF=color component
|
||||
PEExpectedPercent=Expected a percentage but found ‘%1$S’.
|
||||
PEExpectedInt=Expected an integer but found ‘%1$S’.
|
||||
PEExpectedNumberOrPercent=Expected a number or a percentage but found ‘%1$S’.
|
||||
PEColorBadRGBContents=Expected number or percentage in rgb() but found ‘%1$S’.
|
||||
PEColorComponentBadTerm=Expected ‘%2$S’ but found ‘%1$S’.
|
||||
PEColorHueEOF=hue
|
||||
|
|
|
@ -6972,8 +6972,9 @@ CSSParserImpl::ParseColorOpacity(float& aOpacity)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (mToken.mType != eCSSToken_Number) {
|
||||
REPORT_UNEXPECTED_TOKEN(PEExpectedNumber);
|
||||
// eCSSToken_Number or eCSSToken_Percentage.
|
||||
if (mToken.mType != eCSSToken_Number && mToken.mType != eCSSToken_Percentage) {
|
||||
REPORT_UNEXPECTED_TOKEN(PEExpectedNumberOrPercent);
|
||||
UngetToken();
|
||||
return false;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче