Disable align-items in geckolib.

This commit is contained in:
Cameron McCormack 2016-06-03 16:33:49 +10:00 committed by Bobby Holley
parent 99e3e12259
commit fd09035c65
2 changed files with 6 additions and 1 deletions

View file

@ -77,11 +77,14 @@ ${helpers.single_keyword("justify-content", "flex-start flex-end center space-be
products="servo",
animatable=False)}
// FIXME(heycam): Disable align-items in geckolib since we don't support the Gecko initial value
// 'normal' yet.
${helpers.single_keyword("align-items", "stretch flex-start flex-end center baseline",
experimental=True,
need_clone=True,
gecko_constant_prefix="NS_STYLE_ALIGN",
animatable=False)}
animatable=False,
products="servo")}
${helpers.single_keyword("align-content", "stretch flex-start flex-end center space-between space-around",
experimental=True,

View file

@ -1921,6 +1921,7 @@ pub fn cascade<C: ComputedValues>(
}
}
% if "align-items" in data.longhands_by_name:
{
use self::style_struct_traits::Position;
use computed_values::align_self::T as align_self;
@ -1937,6 +1938,7 @@ pub fn cascade<C: ComputedValues>(
style.mutate_position().set_align_self(self_align);
}
}
% endif
// The initial value of border-*-width may be changed at computed value time.
% for side in ["top", "right", "bottom", "left"]: