mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Fix initial value of align-content and justify-content
This commit is contained in:
parent
34fb10bd40
commit
4c27304541
2 changed files with 5 additions and 5 deletions
|
@ -93,7 +93,7 @@ ${helpers.single_keyword("flex-wrap", "nowrap wrap wrap-reverse",
|
||||||
% else:
|
% else:
|
||||||
${helpers.predefined_type(name="justify-content",
|
${helpers.predefined_type(name="justify-content",
|
||||||
type="AlignJustifyContent",
|
type="AlignJustifyContent",
|
||||||
initial_value="specified::AlignJustifyContent::auto()",
|
initial_value="specified::AlignJustifyContent::normal()",
|
||||||
spec="https://drafts.csswg.org/css-flexbox/#justify-content-property",
|
spec="https://drafts.csswg.org/css-flexbox/#justify-content-property",
|
||||||
extra_prefixes="webkit",
|
extra_prefixes="webkit",
|
||||||
animatable=False)}
|
animatable=False)}
|
||||||
|
@ -118,7 +118,7 @@ ${helpers.single_keyword("align-items", "stretch flex-start flex-end center base
|
||||||
% else:
|
% else:
|
||||||
${helpers.predefined_type(name="align-content",
|
${helpers.predefined_type(name="align-content",
|
||||||
type="AlignJustifyContent",
|
type="AlignJustifyContent",
|
||||||
initial_value="specified::AlignJustifyContent::auto()",
|
initial_value="specified::AlignJustifyContent::normal()",
|
||||||
spec="https://drafts.csswg.org/css-flexbox/#align-content-property",
|
spec="https://drafts.csswg.org/css-flexbox/#align-content-property",
|
||||||
extra_prefixes="webkit",
|
extra_prefixes="webkit",
|
||||||
animatable=False)}
|
animatable=False)}
|
||||||
|
|
|
@ -117,10 +117,10 @@ const ALIGN_ALL_SHIFT: u32 = structs::NS_STYLE_ALIGN_ALL_SHIFT;
|
||||||
pub struct AlignJustifyContent(u16);
|
pub struct AlignJustifyContent(u16);
|
||||||
|
|
||||||
impl AlignJustifyContent {
|
impl AlignJustifyContent {
|
||||||
/// The initial value 'auto'
|
/// The initial value 'normal'
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn auto() -> Self {
|
pub fn normal() -> Self {
|
||||||
Self::new(ALIGN_AUTO)
|
Self::new(ALIGN_NORMAL)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Construct a value with no fallback.
|
/// Construct a value with no fallback.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue