зеркало из https://github.com/mozilla/gecko-dev.git
negative border widths are not legal in CSS. bug 167657, r=glazou,
sr=dbaron.
This commit is contained in:
Родитель
720bcd0c52
Коммит
49fd167d97
|
@ -3738,8 +3738,8 @@ PRBool CSSParserImpl::ParseSingleValueProperty(PRInt32& aErrorCode,
|
|||
case eCSSProperty_border_left_width:
|
||||
case eCSSProperty_border_right_width:
|
||||
case eCSSProperty_border_top_width:
|
||||
return ParseVariant(aErrorCode, aValue, VARIANT_HKL,
|
||||
nsCSSProps::kBorderWidthKTable);
|
||||
return ParsePositiveVariant(aErrorCode, aValue, VARIANT_HKL,
|
||||
nsCSSProps::kBorderWidthKTable);
|
||||
case eCSSProperty__moz_border_radius_topLeft:
|
||||
case eCSSProperty__moz_border_radius_topRight:
|
||||
case eCSSProperty__moz_border_radius_bottomRight:
|
||||
|
|
|
@ -3738,8 +3738,8 @@ PRBool CSSParserImpl::ParseSingleValueProperty(PRInt32& aErrorCode,
|
|||
case eCSSProperty_border_left_width:
|
||||
case eCSSProperty_border_right_width:
|
||||
case eCSSProperty_border_top_width:
|
||||
return ParseVariant(aErrorCode, aValue, VARIANT_HKL,
|
||||
nsCSSProps::kBorderWidthKTable);
|
||||
return ParsePositiveVariant(aErrorCode, aValue, VARIANT_HKL,
|
||||
nsCSSProps::kBorderWidthKTable);
|
||||
case eCSSProperty__moz_border_radius_topLeft:
|
||||
case eCSSProperty__moz_border_radius_topRight:
|
||||
case eCSSProperty__moz_border_radius_bottomRight:
|
||||
|
|
Загрузка…
Ссылка в новой задаче