style: Add check for non-Copy specified value to ensure specified_is_copy always returns the right result.

Differential Revision: https://phabricator.services.mozilla.com/D2931
This commit is contained in:
Xidorn Quan 2018-08-08 12:07:34 +00:00 committed by Emilio Cobos Álvarez
parent e7945bbfcb
commit e22850dc85
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 29 additions and 1 deletions

View file

@ -290,14 +290,22 @@ class Longhand(object):
"AlignContent",
"AlignItems",
"AlignSelf",
"Appearance",
"BackgroundRepeat",
"BorderImageRepeat",
"BorderStyle",
"Clear",
"ColumnCount",
"Contain",
"Display",
"Float",
"FontSizeAdjust",
"FontStretch",
"FontStyle",
"FontStyleAdjust",
"FontSynthesis",
"FontWeight",
"GreaterThanOrEqualToOneNumber",
"GridAutoFlow",
"InitialLetter",
"Integer",
@ -311,10 +319,13 @@ class Longhand(object):
"NonNegativeNumber",
"Opacity",
"OutlineStyle",
"OverflowClipBox",
"OverscrollBehavior",
"Percentage",
"SVGOpacity",
"SVGPaintOrder",
"ScrollSnapType",
"TextAlign",
"TextDecorationLine",
"TouchAction",
"TransformStyle",
@ -322,6 +333,8 @@ class Longhand(object):
"XTextZoom",
"ZIndex",
}
if self.name == "overflow-y":
return True
return bool(self.keyword)
def animated_type(self):