Skip to content

Commit

Permalink
Fix initial value of align-content and justify-content
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrubeck committed Feb 16, 2017
1 parent 34fb10b commit 4c27304
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions components/style/properties/longhand/position.mako.rs
Expand Up @@ -93,7 +93,7 @@ ${helpers.single_keyword("flex-wrap", "nowrap wrap wrap-reverse",
% else:
${helpers.predefined_type(name="justify-content",
type="AlignJustifyContent",
initial_value="specified::AlignJustifyContent::auto()",
initial_value="specified::AlignJustifyContent::normal()",
spec="https://drafts.csswg.org/css-flexbox/#justify-content-property",
extra_prefixes="webkit",
animatable=False)}
Expand All @@ -118,7 +118,7 @@ ${helpers.single_keyword("align-items", "stretch flex-start flex-end center base
% else:
${helpers.predefined_type(name="align-content",
type="AlignJustifyContent",
initial_value="specified::AlignJustifyContent::auto()",
initial_value="specified::AlignJustifyContent::normal()",
spec="https://drafts.csswg.org/css-flexbox/#align-content-property",
extra_prefixes="webkit",
animatable=False)}
Expand Down
6 changes: 3 additions & 3 deletions components/style/values/specified/align.rs
Expand Up @@ -117,10 +117,10 @@ const ALIGN_ALL_SHIFT: u32 = structs::NS_STYLE_ALIGN_ALL_SHIFT;
pub struct AlignJustifyContent(u16);

impl AlignJustifyContent {
/// The initial value 'auto'
/// The initial value 'normal'
#[inline]
pub fn auto() -> Self {
Self::new(ALIGN_AUTO)
pub fn normal() -> Self {
Self::new(ALIGN_NORMAL)
}

/// Construct a value with no fallback.
Expand Down

0 comments on commit 4c27304

Please sign in to comment.