Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix wrong initial values in various single keyword properties
  • Loading branch information
canova committed Mar 10, 2017
1 parent a11a3fe commit bae7c50
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions components/style/properties/longhand/column.mako.rs
Expand Up @@ -114,9 +114,9 @@ ${helpers.predefined_type("column-gap",
animatable=False,
spec="https://drafts.csswg.org/css-multicol/#propdef-column-gap")}

${helpers.single_keyword("column-fill", "auto balance", extra_prefixes="moz",
${helpers.single_keyword("column-fill", "balance auto", extra_prefixes="moz",
products="gecko", animatable=False,
spec="https://drafts.csswg.org/css-multicol/#propdef-column-gap")}
spec="https://drafts.csswg.org/css-multicol/#propdef-column-fill")}

// https://drafts.csswg.org/css-multicol-1/#propdef-column-rule-width
<%helpers:longhand name="column-rule-width" products="gecko" animatable="True" extra_prefixes="moz"
Expand Down
4 changes: 2 additions & 2 deletions components/style/properties/longhand/inherited_svg.mako.rs
Expand Up @@ -22,12 +22,12 @@ ${helpers.single_keyword("text-anchor",

// Section 11 - Painting: Filling, Stroking and Marker Symbols
${helpers.single_keyword("color-interpolation",
"auto srgb linearrgb",
"srgb auto linearrgb",
products="gecko",
animatable=False,
spec="https://www.w3.org/TR/SVG11/painting.html#ColorInterpolationProperty")}

${helpers.single_keyword("color-interpolation-filters", "auto srgb linearrgb",
${helpers.single_keyword("color-interpolation-filters", "linearrgb auto srgb",
products="gecko",
gecko_constant_prefix="NS_STYLE_COLOR_INTERPOLATION",
animatable=False,
Expand Down
4 changes: 2 additions & 2 deletions components/style/properties/longhand/inherited_text.mako.rs
Expand Up @@ -164,7 +164,7 @@ ${helpers.single_keyword("text-transform",
animatable=False,
spec="https://drafts.csswg.org/css-text/#propdef-text-transform")}

${helpers.single_keyword("hyphens", "none manual auto",
${helpers.single_keyword("hyphens", "manual none auto",
gecko_enum_prefix="StyleHyphens",
products="gecko", animatable=False, extra_prefixes="moz",
spec="https://drafts.csswg.org/css-text/#propdef-hyphens")}
Expand Down Expand Up @@ -1133,7 +1133,7 @@ ${helpers.predefined_type(

// CSS Ruby Layout Module Level 1
// https://drafts.csswg.org/css-ruby/
${helpers.single_keyword("ruby-align", "start center space-between space-around",
${helpers.single_keyword("ruby-align", "space-around start center space-between",
products="gecko", animatable=False,
spec="https://drafts.csswg.org/css-ruby/#ruby-align-property")}

Expand Down
2 changes: 1 addition & 1 deletion components/style/properties/longhand/position.mako.rs
Expand Up @@ -86,7 +86,7 @@ ${helpers.single_keyword("flex-wrap", "nowrap wrap wrap-reverse",

% if product == "servo":
// FIXME: Update Servo to support the same Syntax as Gecko.
${helpers.single_keyword("justify-content", "stretch flex-start flex-end center space-between space-around",
${helpers.single_keyword("justify-content", "flex-start stretch flex-end center space-between space-around",
extra_prefixes="webkit",
spec="https://drafts.csswg.org/css-align/#propdef-justify-content",
animatable=False)}
Expand Down
6 changes: 3 additions & 3 deletions components/style/properties/longhand/svg.mako.rs
Expand Up @@ -87,7 +87,7 @@ ${helpers.single_keyword("mask-type", "luminance alpha",
</%helpers:longhand>

${helpers.single_keyword("mask-mode",
"alpha luminance match-source",
"match-source alpha luminance",
vector=True,
products="gecko",
animatable=False,
Expand Down Expand Up @@ -146,7 +146,7 @@ ${helpers.single_keyword("mask-repeat",
</%helpers:vector_longhand>

${helpers.single_keyword("mask-clip",
"content-box padding-box border-box",
"border-box content-box padding-box",
extra_gecko_values="fill-box stroke-box view-box no-clip",
vector=True,
products="gecko",
Expand All @@ -155,7 +155,7 @@ ${helpers.single_keyword("mask-clip",
spec="https://drafts.fxtf.org/css-masking/#propdef-mask-clip")}

${helpers.single_keyword("mask-origin",
"content-box padding-box border-box",
"border-box content-box padding-box",
extra_gecko_values="fill-box stroke-box view-box",
vector=True,
products="gecko",
Expand Down
2 changes: 1 addition & 1 deletion components/style/properties/longhand/ui.mako.rs
Expand Up @@ -11,7 +11,7 @@

// TODO spec says that UAs should not support this
// we should probably remove from gecko (https://bugzilla.mozilla.org/show_bug.cgi?id=1328331)
${helpers.single_keyword("ime-mode", "normal auto active disabled inactive",
${helpers.single_keyword("ime-mode", "auto normal active disabled inactive",
products="gecko", gecko_ffi_name="mIMEMode",
animatable=False,
spec="https://drafts.csswg.org/css-ui/#input-method-editor")}
Expand Down

0 comments on commit bae7c50

Please sign in to comment.