Change predefined type of flex-basis / make gecko glue auto-generate

Gecko doesn't support content value in flex-basis yet.
This commit is contained in:
Nazım Can Altınova 2017-03-10 02:49:42 +03:00
parent 9e6fce4d36
commit aa5477bd34
No known key found for this signature in database
GPG key ID: AF9BCD7CE6449954
3 changed files with 26 additions and 11 deletions

View file

@ -195,13 +195,16 @@ ${helpers.predefined_type("flex-shrink", "Number",
}
</%helpers:longhand>
// FIXME: Gecko doesn't support content value yet.
// FIXME: This property should be animatable.
${helpers.predefined_type("flex-basis",
"LengthOrPercentageOrAuto" if product == "gecko" else
"LengthOrPercentageOrAutoOrContent",
"computed::LengthOrPercentageOrAuto::Auto" if product == "gecko" else
"computed::LengthOrPercentageOrAutoOrContent::Auto",
spec="https://drafts.csswg.org/css-flexbox/#flex-basis-property",
extra_prefixes="webkit",
animatable=False)}
animatable=True if product == "gecko" else False)}
% for (size, logical) in ALL_SIZES:
<%