mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 585185: Parse font-sizes as non-negative, in 'font' shorthand. r=dbaron
This commit is contained in:
parent
0ec82ac402
commit
5423d3fe0d
1
layout/style/crashtests/585185-1.html
Normal file
1
layout/style/crashtests/585185-1.html
Normal file
@ -0,0 +1 @@
|
||||
<a style="font: -2px Verdana;">
|
@ -64,6 +64,7 @@ load 558943-1.xhtml
|
||||
load 571105-1.xhtml
|
||||
load 573127-1.html
|
||||
load 580685.html
|
||||
load 585185-1.html
|
||||
load 592698-1.html
|
||||
load 601437-1.html
|
||||
load 601439-1.html
|
||||
|
@ -8610,7 +8610,8 @@ CSSParserImpl::ParseFont()
|
||||
|
||||
// Get mandatory font-size
|
||||
nsCSSValue size;
|
||||
if (! ParseVariant(size, VARIANT_KEYWORD | VARIANT_LP, nsCSSProps::kFontSizeKTable)) {
|
||||
if (! ParseNonNegativeVariant(size, VARIANT_KEYWORD | VARIANT_LP,
|
||||
nsCSSProps::kFontSizeKTable)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -2403,7 +2403,7 @@ var gCSSProperties = {
|
||||
// Gecko-specific system fonts
|
||||
"-moz-window", "-moz-document", "-moz-desktop", "-moz-info", "-moz-dialog", "-moz-button", "-moz-pull-down-menu", "-moz-list", "-moz-field", "-moz-workspace",
|
||||
],
|
||||
invalid_values: [ "9 fantasy" ]
|
||||
invalid_values: [ "9 fantasy", "-2px fantasy" ]
|
||||
},
|
||||
"font-family": {
|
||||
domProp: "fontFamily",
|
||||
|
Loading…
Reference in New Issue
Block a user