Skip to content

Commit

Permalink
Disable align-items in geckolib.
Browse files Browse the repository at this point in the history
  • Loading branch information
heycam authored and bholley committed Jul 6, 2016
1 parent 99e3e12 commit fd09035
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/style/properties/longhand/position.mako.rs
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions components/style/properties/properties.mako.rs
Expand Up @@ -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;
Expand All @@ -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"]:
Expand Down

0 comments on commit fd09035

Please sign in to comment.