Reject negative values of flex-basis.

Fixes #15902
This commit is contained in:
Carlos Martinez 2017-04-05 18:37:34 +02:00
parent bf7c044955
commit b85f1a0240
2 changed files with 19 additions and 0 deletions

View file

@ -142,6 +142,7 @@ ${helpers.predefined_type("flex-basis",
"LengthOrPercentageOrAutoOrContent",
"computed::LengthOrPercentageOrAuto::Auto" if product == "gecko" else
"computed::LengthOrPercentageOrAutoOrContent::Auto",
"parse_non_negative_with_context",
spec="https://drafts.csswg.org/css-flexbox/#flex-basis-property",
extra_prefixes="webkit",
animatable=True if product == "gecko" else False)}