mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Stylo: replace product={gecko,servo} with engine={gecko,servo-2013,servo-2020}
Renaming the variable helped make sure I looked at every use.
This commit is contained in:
parent
f1300bb98b
commit
ddb4e369dd
52 changed files with 870 additions and 469 deletions
|
@ -10,6 +10,7 @@ ${helpers.predefined_type(
|
|||
"background-color",
|
||||
"Color",
|
||||
"computed::Color::transparent()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
initial_specified_value="SpecifiedValue::transparent()",
|
||||
spec="https://drafts.csswg.org/css-backgrounds/#background-color",
|
||||
animation_value_type="AnimatedColor",
|
||||
|
@ -21,6 +22,8 @@ ${helpers.predefined_type(
|
|||
${helpers.predefined_type(
|
||||
"background-image",
|
||||
"ImageLayer",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
initial_value="computed::ImageLayer::none()",
|
||||
initial_specified_value="specified::ImageLayer::none()",
|
||||
spec="https://drafts.csswg.org/css-backgrounds/#the-background-image",
|
||||
|
@ -33,6 +36,7 @@ ${helpers.predefined_type(
|
|||
${helpers.predefined_type(
|
||||
"background-position-" + axis,
|
||||
"position::" + direction + "Position",
|
||||
engines="gecko servo-2013",
|
||||
initial_value="computed::LengthPercentage::zero()",
|
||||
initial_specified_value="SpecifiedValue::initial_specified_value()",
|
||||
spec="https://drafts.csswg.org/css-backgrounds-4/#propdef-background-position-" + axis,
|
||||
|
@ -46,6 +50,7 @@ ${helpers.predefined_type(
|
|||
"background-repeat",
|
||||
"BackgroundRepeat",
|
||||
"computed::BackgroundRepeat::repeat()",
|
||||
engines="gecko servo-2013",
|
||||
initial_specified_value="specified::BackgroundRepeat::repeat()",
|
||||
animation_value_type="discrete",
|
||||
vector=True,
|
||||
|
@ -54,7 +59,8 @@ ${helpers.predefined_type(
|
|||
|
||||
${helpers.single_keyword(
|
||||
"background-attachment",
|
||||
"scroll fixed" + (" local" if product == "gecko" else ""),
|
||||
"scroll fixed" + (" local" if engine == "gecko" else ""),
|
||||
engines="gecko servo-2013",
|
||||
vector=True,
|
||||
gecko_enum_prefix="StyleImageLayerAttachment",
|
||||
spec="https://drafts.csswg.org/css-backgrounds/#the-background-attachment",
|
||||
|
@ -64,6 +70,7 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"background-clip",
|
||||
"border-box padding-box content-box",
|
||||
engines="gecko servo-2013",
|
||||
extra_gecko_values="text",
|
||||
vector=True, extra_prefixes="webkit",
|
||||
gecko_enum_prefix="StyleGeometryBox",
|
||||
|
@ -75,6 +82,7 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"background-origin",
|
||||
"padding-box border-box content-box",
|
||||
engines="gecko servo-2013",
|
||||
vector=True, extra_prefixes="webkit",
|
||||
gecko_enum_prefix="StyleGeometryBox",
|
||||
gecko_inexhaustive=True,
|
||||
|
@ -85,6 +93,7 @@ ${helpers.single_keyword(
|
|||
${helpers.predefined_type(
|
||||
"background-size",
|
||||
"BackgroundSize",
|
||||
engines="gecko servo-2013",
|
||||
initial_value="computed::BackgroundSize::auto()",
|
||||
initial_specified_value="specified::BackgroundSize::auto()",
|
||||
spec="https://drafts.csswg.org/css-backgrounds/#the-background-size",
|
||||
|
@ -100,6 +109,8 @@ ${helpers.single_keyword(
|
|||
color-burn hard-light soft-light difference exclusion hue
|
||||
saturation color luminosity""",
|
||||
gecko_constant_prefix="NS_STYLE_BLEND",
|
||||
vector=True, products="gecko", animation_value_type="discrete",
|
||||
vector=True,
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.fxtf.org/compositing/#background-blend-mode",
|
||||
)}
|
||||
|
|
|
@ -23,7 +23,9 @@
|
|||
${helpers.predefined_type(
|
||||
"border-%s-color" % side_name, "Color",
|
||||
"computed_value::T::currentcolor()",
|
||||
alias=maybe_moz_logical_alias(product, side, "-moz-border-%s-color"),
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
alias=maybe_moz_logical_alias(engine, side, "-moz-border-%s-color"),
|
||||
spec=maybe_logical_spec(side, "color"),
|
||||
animation_value_type="AnimatedColor",
|
||||
logical=is_logical,
|
||||
|
@ -35,7 +37,8 @@
|
|||
${helpers.predefined_type(
|
||||
"border-%s-style" % side_name, "BorderStyle",
|
||||
"specified::BorderStyle::None",
|
||||
alias=maybe_moz_logical_alias(product, side, "-moz-border-%s-style"),
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
alias=maybe_moz_logical_alias(engine, side, "-moz-border-%s-style"),
|
||||
spec=maybe_logical_spec(side, "style"),
|
||||
animation_value_type="discrete" if not is_logical else "none",
|
||||
logical=is_logical,
|
||||
|
@ -47,8 +50,10 @@
|
|||
"border-%s-width" % side_name,
|
||||
"BorderSideWidth",
|
||||
"crate::values::computed::NonNegativeLength::new(3.)",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
computed_type="crate::values::computed::NonNegativeLength",
|
||||
alias=maybe_moz_logical_alias(product, side, "-moz-border-%s-width"),
|
||||
alias=maybe_moz_logical_alias(engine, side, "-moz-border-%s-width"),
|
||||
spec=maybe_logical_spec(side, "width"),
|
||||
animation_value_type="NonNegativeLength",
|
||||
logical=is_logical,
|
||||
|
@ -73,6 +78,7 @@
|
|||
"BorderCornerRadius",
|
||||
"computed::BorderCornerRadius::zero()",
|
||||
"parse",
|
||||
engines="gecko servo-2013",
|
||||
extra_prefixes=prefixes,
|
||||
spec=maybe_logical_spec(corner, "radius"),
|
||||
boxed=True,
|
||||
|
@ -85,18 +91,18 @@
|
|||
${helpers.single_keyword(
|
||||
"box-decoration-break",
|
||||
"slice clone",
|
||||
engines="gecko",
|
||||
gecko_enum_prefix="StyleBoxDecorationBreak",
|
||||
spec="https://drafts.csswg.org/css-break/#propdef-box-decoration-break",
|
||||
products="gecko",
|
||||
animation_value_type="discrete",
|
||||
)}
|
||||
|
||||
${helpers.single_keyword(
|
||||
"-moz-float-edge",
|
||||
"content-box margin-box",
|
||||
engines="gecko",
|
||||
gecko_ffi_name="mFloatEdge",
|
||||
gecko_enum_prefix="StyleFloatEdge",
|
||||
products="gecko",
|
||||
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-float-edge)",
|
||||
animation_value_type="discrete",
|
||||
)}
|
||||
|
@ -104,18 +110,20 @@ ${helpers.single_keyword(
|
|||
${helpers.predefined_type(
|
||||
"border-image-source",
|
||||
"ImageLayer",
|
||||
engines="gecko servo-2013",
|
||||
initial_value="computed::ImageLayer::none()",
|
||||
initial_specified_value="specified::ImageLayer::none()",
|
||||
spec="https://drafts.csswg.org/css-backgrounds/#the-background-image",
|
||||
vector=False,
|
||||
animation_value_type="discrete",
|
||||
boxed=product == "servo",
|
||||
boxed=engine == "servo-2013",
|
||||
ignored_when_colors_disabled=True
|
||||
)}
|
||||
|
||||
${helpers.predefined_type(
|
||||
"border-image-outset",
|
||||
"NonNegativeLengthOrNumberRect",
|
||||
engines="gecko servo-2013",
|
||||
initial_value="generics::rect::Rect::all(computed::NonNegativeLengthOrNumber::zero())",
|
||||
initial_specified_value="generics::rect::Rect::all(specified::NonNegativeLengthOrNumber::zero())",
|
||||
spec="https://drafts.csswg.org/css-backgrounds/#border-image-outset",
|
||||
|
@ -127,6 +135,7 @@ ${helpers.predefined_type(
|
|||
"border-image-repeat",
|
||||
"BorderImageRepeat",
|
||||
"computed::BorderImageRepeat::stretch()",
|
||||
engines="gecko servo-2013",
|
||||
initial_specified_value="specified::BorderImageRepeat::stretch()",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-backgrounds/#the-border-image-repeat",
|
||||
|
@ -135,6 +144,7 @@ ${helpers.predefined_type(
|
|||
${helpers.predefined_type(
|
||||
"border-image-width",
|
||||
"BorderImageWidth",
|
||||
engines="gecko servo-2013",
|
||||
initial_value="computed::BorderImageWidth::all(computed::BorderImageSideWidth::one())",
|
||||
initial_specified_value="specified::BorderImageWidth::all(specified::BorderImageSideWidth::one())",
|
||||
spec="https://drafts.csswg.org/css-backgrounds/#border-image-width",
|
||||
|
@ -145,6 +155,7 @@ ${helpers.predefined_type(
|
|||
${helpers.predefined_type(
|
||||
"border-image-slice",
|
||||
"BorderImageSlice",
|
||||
engines="gecko servo-2013",
|
||||
initial_value="computed::BorderImageSlice::hundred_percent()",
|
||||
initial_specified_value="specified::BorderImageSlice::hundred_percent()",
|
||||
spec="https://drafts.csswg.org/css-backgrounds/#border-image-slice",
|
||||
|
|
|
@ -13,19 +13,19 @@ ${helpers.predefined_type(
|
|||
"display",
|
||||
"Display",
|
||||
"computed::Display::inline()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
initial_specified_value="specified::Display::inline()",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-display/#propdef-display",
|
||||
servo_restyle_damage="rebuild_and_reflow",
|
||||
needs_context=product == "gecko"
|
||||
)}
|
||||
|
||||
${helpers.single_keyword(
|
||||
"-moz-top-layer",
|
||||
"none top",
|
||||
engines="gecko",
|
||||
gecko_constant_prefix="NS_STYLE_TOP_LAYER",
|
||||
gecko_ffi_name="mTopLayer",
|
||||
products="gecko",
|
||||
animation_value_type="none",
|
||||
enabled_in="ua",
|
||||
spec="Internal (not web-exposed)",
|
||||
|
@ -36,7 +36,7 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"-servo-top-layer",
|
||||
"none top",
|
||||
products="servo",
|
||||
engines="servo-2013 servo-2020",
|
||||
animation_value_type="none",
|
||||
enabled_in="ua",
|
||||
spec="Internal (not web-exposed)",
|
||||
|
@ -44,7 +44,8 @@ ${helpers.single_keyword(
|
|||
|
||||
${helpers.single_keyword(
|
||||
"position",
|
||||
"static absolute relative fixed sticky",
|
||||
"static absolute relative fixed" + (" sticky" if engine in ["gecko", "servo-2013"] else ""),
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
animation_value_type="discrete",
|
||||
flags="CREATES_STACKING_CONTEXT ABSPOS_CB",
|
||||
spec="https://drafts.csswg.org/css-position/#position-property",
|
||||
|
@ -55,6 +56,8 @@ ${helpers.predefined_type(
|
|||
"float",
|
||||
"Float",
|
||||
"computed::Float::None",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
initial_specified_value="specified::Float::None",
|
||||
spec="https://drafts.csswg.org/css-box/#propdef-float",
|
||||
animation_value_type="discrete",
|
||||
|
@ -67,6 +70,7 @@ ${helpers.predefined_type(
|
|||
"clear",
|
||||
"Clear",
|
||||
"computed::Clear::None",
|
||||
engines="gecko servo-2013",
|
||||
animation_value_type="discrete",
|
||||
needs_context=False,
|
||||
gecko_ffi_name="mBreakType",
|
||||
|
@ -78,6 +82,7 @@ ${helpers.predefined_type(
|
|||
"vertical-align",
|
||||
"VerticalAlign",
|
||||
"computed::VerticalAlign::baseline()",
|
||||
engines="gecko servo-2013",
|
||||
animation_value_type="ComputedValue",
|
||||
spec="https://www.w3.org/TR/CSS2/visudet.html#propdef-vertical-align",
|
||||
servo_restyle_damage = "reflow",
|
||||
|
@ -85,17 +90,22 @@ ${helpers.predefined_type(
|
|||
|
||||
// CSS 2.1, Section 11 - Visual effects
|
||||
|
||||
${helpers.single_keyword("-servo-overflow-clip-box", "padding-box content-box",
|
||||
products="servo", animation_value_type="none", enabled_in="ua",
|
||||
${helpers.single_keyword(
|
||||
"-servo-overflow-clip-box",
|
||||
"padding-box content-box",
|
||||
engines="servo-2013",
|
||||
animation_value_type="none",
|
||||
enabled_in="ua",
|
||||
spec="Internal, not web-exposed, \
|
||||
may be standardized in the future (https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-clip-box)")}
|
||||
may be standardized in the future (https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-clip-box)",
|
||||
)}
|
||||
|
||||
% for direction in ["inline", "block"]:
|
||||
${helpers.predefined_type(
|
||||
"overflow-clip-box-" + direction,
|
||||
"OverflowClipBox",
|
||||
"computed::OverflowClipBox::PaddingBox",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
enabled_in="ua",
|
||||
needs_context=False,
|
||||
gecko_pref="layout.css.overflow-clip-box.enabled",
|
||||
|
@ -111,6 +121,8 @@ ${helpers.single_keyword("-servo-overflow-clip-box", "padding-box content-box",
|
|||
full_name,
|
||||
"Overflow",
|
||||
"computed::Overflow::Visible",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
logical_group="overflow",
|
||||
logical=logical,
|
||||
animation_value_type="discrete",
|
||||
|
@ -125,8 +137,8 @@ ${helpers.predefined_type(
|
|||
"overflow-anchor",
|
||||
"OverflowAnchor",
|
||||
"computed::OverflowAnchor::Auto",
|
||||
engines="gecko",
|
||||
initial_specified_value="specified::OverflowAnchor::Auto",
|
||||
products="gecko",
|
||||
needs_context=False,
|
||||
gecko_pref="layout.css.scroll-anchoring.enabled",
|
||||
spec="https://drafts.csswg.org/css-scroll-anchoring/#exclusion-api",
|
||||
|
@ -139,6 +151,8 @@ ${helpers.predefined_type(
|
|||
"transition-duration",
|
||||
"Time",
|
||||
"computed::Time::zero()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
initial_specified_value="specified::Time::zero()",
|
||||
parse_method="parse_non_negative",
|
||||
vector=True,
|
||||
|
@ -152,6 +166,8 @@ ${helpers.predefined_type(
|
|||
"transition-timing-function",
|
||||
"TimingFunction",
|
||||
"computed::TimingFunction::ease()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
initial_specified_value="specified::TimingFunction::ease()",
|
||||
vector=True,
|
||||
need_index=True,
|
||||
|
@ -164,6 +180,8 @@ ${helpers.predefined_type(
|
|||
"transition-property",
|
||||
"TransitionProperty",
|
||||
"computed::TransitionProperty::all()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
initial_specified_value="specified::TransitionProperty::all()",
|
||||
vector=True,
|
||||
allow_empty="NotInitial",
|
||||
|
@ -177,6 +195,8 @@ ${helpers.predefined_type(
|
|||
"transition-delay",
|
||||
"Time",
|
||||
"computed::Time::zero()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
initial_specified_value="specified::Time::zero()",
|
||||
vector=True,
|
||||
need_index=True,
|
||||
|
@ -191,6 +211,8 @@ ${helpers.predefined_type(
|
|||
"animation-name",
|
||||
"AnimationName",
|
||||
"computed::AnimationName::none()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
initial_specified_value="specified::AnimationName::none()",
|
||||
vector=True,
|
||||
need_index=True,
|
||||
|
@ -204,6 +226,8 @@ ${helpers.predefined_type(
|
|||
"animation-duration",
|
||||
"Time",
|
||||
"computed::Time::zero()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
initial_specified_value="specified::Time::zero()",
|
||||
parse_method="parse_non_negative",
|
||||
vector=True,
|
||||
|
@ -219,6 +243,8 @@ ${helpers.predefined_type(
|
|||
"animation-timing-function",
|
||||
"TimingFunction",
|
||||
"computed::TimingFunction::ease()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
initial_specified_value="specified::TimingFunction::ease()",
|
||||
vector=True,
|
||||
need_index=True,
|
||||
|
@ -232,6 +258,8 @@ ${helpers.predefined_type(
|
|||
"animation-iteration-count",
|
||||
"AnimationIterationCount",
|
||||
"computed::AnimationIterationCount::one()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
initial_specified_value="specified::AnimationIterationCount::one()",
|
||||
vector=True,
|
||||
need_index=True,
|
||||
|
@ -245,6 +273,8 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"animation-direction",
|
||||
"normal reverse alternate alternate-reverse",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
need_index=True,
|
||||
animation_value_type="none",
|
||||
vector=True,
|
||||
|
@ -259,6 +289,8 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"animation-play-state",
|
||||
"running paused",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
need_index=True,
|
||||
animation_value_type="none",
|
||||
vector=True,
|
||||
|
@ -271,6 +303,7 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"animation-fill-mode",
|
||||
"none forwards backwards both",
|
||||
engines="gecko servo-2013",
|
||||
need_index=True,
|
||||
animation_value_type="none",
|
||||
vector=True,
|
||||
|
@ -285,6 +318,8 @@ ${helpers.predefined_type(
|
|||
"animation-delay",
|
||||
"Time",
|
||||
"computed::Time::zero()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
initial_specified_value="specified::Time::zero()",
|
||||
vector=True,
|
||||
need_index=True,
|
||||
|
@ -300,6 +335,8 @@ ${helpers.predefined_type(
|
|||
"transform",
|
||||
"Transform",
|
||||
"generics::transform::Transform::none()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
extra_prefixes=transform_extra_prefixes,
|
||||
animation_value_type="ComputedValue",
|
||||
flags="CREATES_STACKING_CONTEXT FIXPOS_CB \
|
||||
|
@ -312,6 +349,7 @@ ${helpers.predefined_type(
|
|||
"rotate",
|
||||
"Rotate",
|
||||
"generics::transform::Rotate::None",
|
||||
engines="gecko servo-2013",
|
||||
animation_value_type="ComputedValue",
|
||||
boxed=True,
|
||||
flags="CREATES_STACKING_CONTEXT FIXPOS_CB CAN_ANIMATE_ON_COMPOSITOR",
|
||||
|
@ -324,6 +362,7 @@ ${helpers.predefined_type(
|
|||
"scale",
|
||||
"Scale",
|
||||
"generics::transform::Scale::None",
|
||||
engines="gecko servo-2013",
|
||||
animation_value_type="ComputedValue",
|
||||
boxed=True,
|
||||
flags="CREATES_STACKING_CONTEXT FIXPOS_CB CAN_ANIMATE_ON_COMPOSITOR",
|
||||
|
@ -336,6 +375,7 @@ ${helpers.predefined_type(
|
|||
"translate",
|
||||
"Translate",
|
||||
"generics::transform::Translate::None",
|
||||
engines="gecko servo-2013",
|
||||
animation_value_type="ComputedValue",
|
||||
boxed=True,
|
||||
flags="CREATES_STACKING_CONTEXT FIXPOS_CB CAN_ANIMATE_ON_COMPOSITOR",
|
||||
|
@ -349,7 +389,7 @@ ${helpers.predefined_type(
|
|||
"offset-path",
|
||||
"OffsetPath",
|
||||
"computed::OffsetPath::none()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="ComputedValue",
|
||||
gecko_pref="layout.css.motion-path.enabled",
|
||||
flags="CREATES_STACKING_CONTEXT FIXPOS_CB",
|
||||
|
@ -362,7 +402,7 @@ ${helpers.predefined_type(
|
|||
"offset-distance",
|
||||
"LengthPercentage",
|
||||
"computed::LengthPercentage::zero()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="ComputedValue",
|
||||
gecko_pref="layout.css.motion-path.enabled",
|
||||
spec="https://drafts.fxtf.org/motion-1/#offset-distance-property",
|
||||
|
@ -374,7 +414,7 @@ ${helpers.predefined_type(
|
|||
"offset-rotate",
|
||||
"OffsetRotate",
|
||||
"computed::OffsetRotate::auto()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="ComputedValue",
|
||||
gecko_pref="layout.css.motion-path.enabled",
|
||||
spec="https://drafts.fxtf.org/motion-1/#offset-rotate-property",
|
||||
|
@ -386,7 +426,7 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"scroll-behavior",
|
||||
"auto smooth",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
spec="https://drafts.csswg.org/cssom-view/#propdef-scroll-behavior",
|
||||
animation_value_type="discrete",
|
||||
)}
|
||||
|
@ -395,7 +435,7 @@ ${helpers.predefined_type(
|
|||
"scroll-snap-align",
|
||||
"ScrollSnapAlign",
|
||||
"computed::ScrollSnapAlign::none()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_pref="layout.css.scroll-snap-v1.enabled",
|
||||
spec="https://drafts.csswg.org/css-scroll-snap-1/#scroll-snap-align",
|
||||
animation_value_type="discrete",
|
||||
|
@ -405,7 +445,7 @@ ${helpers.predefined_type(
|
|||
"scroll-snap-type",
|
||||
"ScrollSnapType",
|
||||
"computed::ScrollSnapType::none()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
spec="https://drafts.csswg.org/css-scroll-snap-1/#scroll-snap-type",
|
||||
animation_value_type="discrete",
|
||||
)}
|
||||
|
@ -415,7 +455,7 @@ ${helpers.predefined_type(
|
|||
"overscroll-behavior-" + axis,
|
||||
"OverscrollBehavior",
|
||||
"computed::OverscrollBehavior::Auto",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
needs_context=False,
|
||||
gecko_pref="layout.css.overscroll-behavior.enabled",
|
||||
spec="https://wicg.github.io/overscroll-behavior/#overscroll-behavior-properties",
|
||||
|
@ -428,7 +468,7 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"isolation",
|
||||
"auto isolate",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
spec="https://drafts.fxtf.org/compositing/#isolation",
|
||||
flags="CREATES_STACKING_CONTEXT",
|
||||
animation_value_type="discrete",
|
||||
|
@ -438,8 +478,8 @@ ${helpers.predefined_type(
|
|||
"break-after",
|
||||
"BreakBetween",
|
||||
"computed::BreakBetween::Auto",
|
||||
engines="gecko",
|
||||
needs_context=False,
|
||||
products="gecko",
|
||||
spec="https://drafts.csswg.org/css-break/#propdef-break-after",
|
||||
animation_value_type="discrete",
|
||||
)}
|
||||
|
@ -448,8 +488,8 @@ ${helpers.predefined_type(
|
|||
"break-before",
|
||||
"BreakBetween",
|
||||
"computed::BreakBetween::Auto",
|
||||
engines="gecko",
|
||||
needs_context=False,
|
||||
products="gecko",
|
||||
spec="https://drafts.csswg.org/css-break/#propdef-break-before",
|
||||
animation_value_type="discrete",
|
||||
)}
|
||||
|
@ -458,8 +498,8 @@ ${helpers.predefined_type(
|
|||
"break-inside",
|
||||
"BreakWithin",
|
||||
"computed::BreakWithin::Auto",
|
||||
engines="gecko",
|
||||
needs_context=False,
|
||||
products="gecko",
|
||||
alias="page-break-inside",
|
||||
spec="https://drafts.csswg.org/css-break/#propdef-break-inside",
|
||||
animation_value_type="discrete",
|
||||
|
@ -471,7 +511,7 @@ ${helpers.predefined_type(
|
|||
"resize",
|
||||
"Resize",
|
||||
"computed::Resize::None",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
needs_context=False,
|
||||
gecko_ffi_name="mResize",
|
||||
|
@ -482,6 +522,7 @@ ${helpers.predefined_type(
|
|||
"perspective",
|
||||
"Perspective",
|
||||
"computed::Perspective::none()",
|
||||
engines="gecko servo-2013",
|
||||
gecko_ffi_name="mChildPerspective",
|
||||
spec="https://drafts.csswg.org/css-transforms/#perspective",
|
||||
extra_prefixes=transform_extra_prefixes,
|
||||
|
@ -494,6 +535,7 @@ ${helpers.predefined_type(
|
|||
"perspective-origin",
|
||||
"Position",
|
||||
"computed::position::Position::center()",
|
||||
engines="gecko servo-2013",
|
||||
boxed=True,
|
||||
extra_prefixes=transform_extra_prefixes,
|
||||
spec="https://drafts.csswg.org/css-transforms-2/#perspective-origin-property",
|
||||
|
@ -505,6 +547,7 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"backface-visibility",
|
||||
"visible hidden",
|
||||
engines="gecko servo-2013",
|
||||
spec="https://drafts.csswg.org/css-transforms/#backface-visibility-property",
|
||||
extra_prefixes=transform_extra_prefixes,
|
||||
animation_value_type="discrete",
|
||||
|
@ -513,8 +556,8 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"transform-box",
|
||||
"border-box fill-box view-box",
|
||||
engines="gecko",
|
||||
gecko_enum_prefix="StyleGeometryBox",
|
||||
products="gecko",
|
||||
gecko_pref="svg.transform-box.enabled",
|
||||
spec="https://drafts.csswg.org/css-transforms/#transform-box",
|
||||
gecko_inexhaustive="True",
|
||||
|
@ -524,7 +567,9 @@ ${helpers.single_keyword(
|
|||
${helpers.predefined_type(
|
||||
"transform-style",
|
||||
"TransformStyle",
|
||||
"computed::TransformStyle::" + ("Auto" if product == "servo" else "Flat"),
|
||||
"computed::TransformStyle::" + ("Flat" if engine == "gecko" else "Auto"),
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
spec="https://drafts.csswg.org/css-transforms-2/#transform-style-property",
|
||||
needs_context=False,
|
||||
extra_prefixes=transform_extra_prefixes,
|
||||
|
@ -537,6 +582,7 @@ ${helpers.predefined_type(
|
|||
"transform-origin",
|
||||
"TransformOrigin",
|
||||
"computed::TransformOrigin::initial_value()",
|
||||
engines="gecko servo-2013",
|
||||
animation_value_type="ComputedValue",
|
||||
extra_prefixes=transform_extra_prefixes,
|
||||
gecko_ffi_name="mTransformOrigin",
|
||||
|
@ -550,8 +596,8 @@ ${helpers.predefined_type(
|
|||
"contain",
|
||||
"Contain",
|
||||
"specified::Contain::empty()",
|
||||
engines="gecko",
|
||||
animation_value_type="none",
|
||||
products="gecko",
|
||||
flags="CREATES_STACKING_CONTEXT FIXPOS_CB",
|
||||
gecko_pref="layout.css.contain.enabled",
|
||||
spec="https://drafts.csswg.org/css-contain/#contain-property",
|
||||
|
@ -563,7 +609,7 @@ ${helpers.predefined_type(
|
|||
"-moz-appearance",
|
||||
"Appearance",
|
||||
"computed::Appearance::None",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
alias="-webkit-appearance:layout.css.webkit-appearance.enabled",
|
||||
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-appearance)",
|
||||
animation_value_type="discrete",
|
||||
|
@ -574,7 +620,7 @@ ${helpers.predefined_type(
|
|||
"-moz-binding",
|
||||
"url::UrlOrNone",
|
||||
"computed::url::UrlOrNone::none()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="none",
|
||||
gecko_ffi_name="mBinding",
|
||||
gecko_pref="layout.css.moz-binding.content.enabled",
|
||||
|
@ -585,7 +631,7 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"-moz-orient",
|
||||
"inline block horizontal vertical",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_ffi_name="mOrient",
|
||||
gecko_enum_prefix="StyleOrient",
|
||||
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-orient)",
|
||||
|
@ -596,7 +642,7 @@ ${helpers.predefined_type(
|
|||
"will-change",
|
||||
"WillChange",
|
||||
"computed::WillChange::auto()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="none",
|
||||
spec="https://drafts.csswg.org/css-will-change/#will-change",
|
||||
)}
|
||||
|
@ -604,8 +650,8 @@ ${helpers.predefined_type(
|
|||
// The spec issue for the parse_method: https://github.com/w3c/csswg-drafts/issues/4102.
|
||||
${helpers.predefined_type(
|
||||
"shape-image-threshold", "Opacity", "0.0",
|
||||
engines="gecko",
|
||||
parse_method="parse_number",
|
||||
products="gecko",
|
||||
animation_value_type="ComputedValue",
|
||||
spec="https://drafts.csswg.org/css-shapes/#shape-image-threshold-property",
|
||||
)}
|
||||
|
@ -614,7 +660,7 @@ ${helpers.predefined_type(
|
|||
"shape-margin",
|
||||
"NonNegativeLengthPercentage",
|
||||
"computed::NonNegativeLengthPercentage::zero()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="NonNegativeLengthPercentage",
|
||||
spec="https://drafts.csswg.org/css-shapes/#shape-margin-property",
|
||||
)}
|
||||
|
@ -623,7 +669,7 @@ ${helpers.predefined_type(
|
|||
"shape-outside",
|
||||
"basic_shape::FloatAreaShape",
|
||||
"generics::basic_shape::ShapeSource::None",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="basic_shape::FloatAreaShape",
|
||||
spec="https://drafts.csswg.org/css-shapes/#shape-outside-property",
|
||||
)}
|
||||
|
@ -632,7 +678,7 @@ ${helpers.predefined_type(
|
|||
"touch-action",
|
||||
"TouchAction",
|
||||
"computed::TouchAction::auto()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_pref="layout.css.touch_action.enabled",
|
||||
animation_value_type="discrete",
|
||||
spec="https://compat.spec.whatwg.org/#touch-action",
|
||||
|
@ -645,8 +691,8 @@ ${helpers.predefined_type(
|
|||
"-webkit-line-clamp",
|
||||
"PositiveIntegerOrNone",
|
||||
"Either::Second(None_)",
|
||||
engines="gecko",
|
||||
gecko_pref="layout.css.webkit-line-clamp.enabled",
|
||||
animation_value_type="Integer",
|
||||
products="gecko",
|
||||
spec="https://drafts.csswg.org/css-overflow-3/#line-clamp",
|
||||
)}
|
||||
|
|
|
@ -10,10 +10,12 @@ ${helpers.predefined_type(
|
|||
"column-width",
|
||||
"length::NonNegativeLengthOrAuto",
|
||||
"computed::length::NonNegativeLengthOrAuto::auto()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
initial_specified_value="specified::length::NonNegativeLengthOrAuto::auto()",
|
||||
extra_prefixes="moz",
|
||||
animation_value_type="NonNegativeLengthOrAuto",
|
||||
servo_pref="layout.columns.enabled",
|
||||
servo_2013_pref="layout.columns.enabled",
|
||||
spec="https://drafts.csswg.org/css-multicol/#propdef-column-width",
|
||||
servo_restyle_damage="rebuild_and_reflow",
|
||||
)}
|
||||
|
@ -22,8 +24,10 @@ ${helpers.predefined_type(
|
|||
"column-count",
|
||||
"ColumnCount",
|
||||
"computed::ColumnCount::auto()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
initial_specified_value="specified::ColumnCount::auto()",
|
||||
servo_pref="layout.columns.enabled",
|
||||
servo_2013_pref="layout.columns.enabled",
|
||||
animation_value_type="AnimatedColumnCount",
|
||||
extra_prefixes="moz",
|
||||
spec="https://drafts.csswg.org/css-multicol/#propdef-column-count",
|
||||
|
@ -33,8 +37,8 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"column-fill",
|
||||
"balance auto",
|
||||
engines="gecko",
|
||||
extra_prefixes="moz",
|
||||
products="gecko",
|
||||
animation_value_type="discrete",
|
||||
gecko_enum_prefix="StyleColumnFill",
|
||||
spec="https://drafts.csswg.org/css-multicol/#propdef-column-fill",
|
||||
|
@ -44,9 +48,9 @@ ${helpers.predefined_type(
|
|||
"column-rule-width",
|
||||
"BorderSideWidth",
|
||||
"crate::values::computed::NonNegativeLength::new(3.)",
|
||||
engines="gecko",
|
||||
initial_specified_value="specified::BorderSideWidth::Medium",
|
||||
computed_type="crate::values::computed::NonNegativeLength",
|
||||
products="gecko",
|
||||
spec="https://drafts.csswg.org/css-multicol/#propdef-column-rule-width",
|
||||
animation_value_type="NonNegativeLength",
|
||||
extra_prefixes="moz",
|
||||
|
@ -57,8 +61,8 @@ ${helpers.predefined_type(
|
|||
"column-rule-color",
|
||||
"Color",
|
||||
"computed_value::T::currentcolor()",
|
||||
engines="gecko",
|
||||
initial_specified_value="specified::Color::currentcolor()",
|
||||
products="gecko",
|
||||
animation_value_type="AnimatedColor",
|
||||
extra_prefixes="moz",
|
||||
ignored_when_colors_disabled=True,
|
||||
|
@ -69,7 +73,7 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"column-span",
|
||||
"none all",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
gecko_enum_prefix="StyleColumnSpan",
|
||||
gecko_pref="layout.css.column-span.enabled",
|
||||
|
@ -82,9 +86,9 @@ ${helpers.predefined_type(
|
|||
"column-rule-style",
|
||||
"BorderStyle",
|
||||
"computed::BorderStyle::None",
|
||||
engines="gecko",
|
||||
needs_context=False,
|
||||
initial_specified_value="specified::BorderStyle::None",
|
||||
products="gecko",
|
||||
extra_prefixes="moz",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-multicol/#propdef-column-rule-style",
|
||||
|
|
|
@ -10,6 +10,8 @@ ${helpers.predefined_type(
|
|||
"content",
|
||||
"Content",
|
||||
"computed::Content::normal()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
initial_specified_value="specified::Content::normal()",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-content/#propdef-content",
|
||||
|
@ -19,6 +21,7 @@ ${helpers.predefined_type(
|
|||
${helpers.predefined_type(
|
||||
"counter-increment",
|
||||
"CounterIncrement",
|
||||
engines="gecko servo-2013",
|
||||
initial_value="Default::default()",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-lists/#propdef-counter-increment",
|
||||
|
@ -28,6 +31,7 @@ ${helpers.predefined_type(
|
|||
${helpers.predefined_type(
|
||||
"counter-reset",
|
||||
"CounterSetOrReset",
|
||||
engines="gecko servo-2013",
|
||||
initial_value="Default::default()",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-lists-3/#propdef-counter-reset",
|
||||
|
@ -37,9 +41,9 @@ ${helpers.predefined_type(
|
|||
${helpers.predefined_type(
|
||||
"counter-set",
|
||||
"CounterSetOrReset",
|
||||
engines="gecko",
|
||||
initial_value="Default::default()",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-lists-3/#propdef-counter-set",
|
||||
servo_restyle_damage="rebuild_and_reflow",
|
||||
products="gecko",
|
||||
)}
|
||||
|
|
|
@ -11,6 +11,8 @@ ${helpers.predefined_type(
|
|||
"opacity",
|
||||
"Opacity",
|
||||
"1.0",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
animation_value_type="ComputedValue",
|
||||
flags="CREATES_STACKING_CONTEXT CAN_ANIMATE_ON_COMPOSITOR",
|
||||
spec="https://drafts.csswg.org/css-color/#transparency",
|
||||
|
@ -21,6 +23,8 @@ ${helpers.predefined_type(
|
|||
"box-shadow",
|
||||
"BoxShadow",
|
||||
None,
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
vector=True,
|
||||
simple_vector_bindings=True,
|
||||
animation_value_type="AnimatedBoxShadowList",
|
||||
|
@ -34,6 +38,8 @@ ${helpers.predefined_type(
|
|||
"clip",
|
||||
"ClipRectOrAuto",
|
||||
"computed::ClipRectOrAuto::auto()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
animation_value_type="ComputedValue",
|
||||
boxed=True,
|
||||
allow_quirks="Yes",
|
||||
|
@ -44,6 +50,8 @@ ${helpers.predefined_type(
|
|||
"filter",
|
||||
"Filter",
|
||||
None,
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
vector=True,
|
||||
simple_vector_bindings=True,
|
||||
gecko_ffi_name="mFilters",
|
||||
|
@ -59,6 +67,7 @@ ${helpers.predefined_type(
|
|||
"backdrop-filter",
|
||||
"Filter",
|
||||
None,
|
||||
engines="gecko",
|
||||
vector=True,
|
||||
simple_vector_bindings=True,
|
||||
gecko_ffi_name="mBackdropFilters",
|
||||
|
@ -68,7 +77,6 @@ ${helpers.predefined_type(
|
|||
flags="CREATES_STACKING_CONTEXT FIXPOS_CB",
|
||||
gecko_pref="layout.css.backdrop-filter.enabled",
|
||||
spec="https://drafts.fxtf.org/filter-effects-2/#propdef-backdrop-filter",
|
||||
products="gecko",
|
||||
)}
|
||||
|
||||
${helpers.single_keyword(
|
||||
|
@ -76,6 +84,8 @@ ${helpers.single_keyword(
|
|||
"""normal multiply screen overlay darken lighten color-dodge
|
||||
color-burn hard-light soft-light difference exclusion hue
|
||||
saturation color luminosity""",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
gecko_constant_prefix="NS_STYLE_BLEND",
|
||||
animation_value_type="discrete",
|
||||
flags="CREATES_STACKING_CONTEXT",
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
${helpers.predefined_type(
|
||||
"font-family",
|
||||
"FontFamily",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
initial_value="computed::FontFamily::serif()",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-fonts/#propdef-font-family",
|
||||
|
@ -19,6 +21,8 @@ ${helpers.predefined_type(
|
|||
${helpers.predefined_type(
|
||||
"font-style",
|
||||
"FontStyle",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
initial_value="computed::FontStyle::normal()",
|
||||
initial_specified_value="specified::FontStyle::normal()",
|
||||
animation_value_type="FontStyle",
|
||||
|
@ -35,6 +39,8 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword_system(
|
||||
"font-variant-caps",
|
||||
"normal small-caps",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
extra_gecko_values="all-small-caps petite-caps all-petite-caps unicase titling-caps",
|
||||
gecko_constant_prefix="NS_FONT_VARIANT_CAPS",
|
||||
gecko_ffi_name="mFont.variantCaps",
|
||||
|
@ -47,6 +53,8 @@ ${helpers.single_keyword_system(
|
|||
${helpers.predefined_type(
|
||||
"font-weight",
|
||||
"FontWeight",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
initial_value="computed::FontWeight::normal()",
|
||||
initial_specified_value="specified::FontWeight::normal()",
|
||||
animation_value_type="Number",
|
||||
|
@ -57,6 +65,7 @@ ${helpers.predefined_type(
|
|||
${helpers.predefined_type(
|
||||
"font-size",
|
||||
"FontSize",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
initial_value="computed::FontSize::medium()",
|
||||
initial_specified_value="specified::FontSize::medium()",
|
||||
animation_value_type="NonNegativeLength",
|
||||
|
@ -68,7 +77,7 @@ ${helpers.predefined_type(
|
|||
${helpers.predefined_type(
|
||||
"font-size-adjust",
|
||||
"FontSizeAdjust",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
initial_value="computed::FontSizeAdjust::none()",
|
||||
initial_specified_value="specified::FontSizeAdjust::none()",
|
||||
animation_value_type="ComputedValue",
|
||||
|
@ -78,7 +87,7 @@ ${helpers.predefined_type(
|
|||
${helpers.predefined_type(
|
||||
"font-synthesis",
|
||||
"FontSynthesis",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
initial_value="specified::FontSynthesis::get_initial_value()",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-fonts/#propdef-font-synthesis",
|
||||
|
@ -87,6 +96,8 @@ ${helpers.predefined_type(
|
|||
${helpers.predefined_type(
|
||||
"font-stretch",
|
||||
"FontStretch",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
initial_value="computed::FontStretch::hundred()",
|
||||
initial_specified_value="specified::FontStretch::normal()",
|
||||
animation_value_type="Percentage",
|
||||
|
@ -97,7 +108,7 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword_system(
|
||||
"font-kerning",
|
||||
"auto none normal",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_ffi_name="mFont.kerning",
|
||||
gecko_constant_prefix="NS_FONT_KERNING",
|
||||
spec="https://drafts.csswg.org/css-fonts/#propdef-font-kerning",
|
||||
|
@ -107,7 +118,7 @@ ${helpers.single_keyword_system(
|
|||
${helpers.predefined_type(
|
||||
"font-variant-alternates",
|
||||
"FontVariantAlternates",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
initial_value="computed::FontVariantAlternates::get_initial_value()",
|
||||
initial_specified_value="specified::FontVariantAlternates::get_initial_specified_value()",
|
||||
animation_value_type="discrete",
|
||||
|
@ -117,7 +128,7 @@ ${helpers.predefined_type(
|
|||
${helpers.predefined_type(
|
||||
"font-variant-east-asian",
|
||||
"FontVariantEastAsian",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
initial_value="computed::FontVariantEastAsian::empty()",
|
||||
initial_specified_value="specified::FontVariantEastAsian::empty()",
|
||||
animation_value_type="discrete",
|
||||
|
@ -127,7 +138,7 @@ ${helpers.predefined_type(
|
|||
${helpers.predefined_type(
|
||||
"font-variant-ligatures",
|
||||
"FontVariantLigatures",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
initial_value="computed::FontVariantLigatures::empty()",
|
||||
initial_specified_value="specified::FontVariantLigatures::empty()",
|
||||
animation_value_type="discrete",
|
||||
|
@ -137,7 +148,7 @@ ${helpers.predefined_type(
|
|||
${helpers.predefined_type(
|
||||
"font-variant-numeric",
|
||||
"FontVariantNumeric",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
initial_value="computed::FontVariantNumeric::empty()",
|
||||
initial_specified_value="specified::FontVariantNumeric::empty()",
|
||||
animation_value_type="discrete",
|
||||
|
@ -147,7 +158,7 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword_system(
|
||||
"font-variant-position",
|
||||
"normal sub super",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_ffi_name="mFont.variantPosition",
|
||||
gecko_constant_prefix="NS_FONT_VARIANT_POSITION",
|
||||
spec="https://drafts.csswg.org/css-fonts/#propdef-font-variant-position",
|
||||
|
@ -157,7 +168,7 @@ ${helpers.single_keyword_system(
|
|||
${helpers.predefined_type(
|
||||
"font-feature-settings",
|
||||
"FontFeatureSettings",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
initial_value="computed::FontFeatureSettings::normal()",
|
||||
initial_specified_value="specified::FontFeatureSettings::normal()",
|
||||
extra_prefixes="moz:layout.css.prefixes.font-features",
|
||||
|
@ -168,7 +179,7 @@ ${helpers.predefined_type(
|
|||
${helpers.predefined_type(
|
||||
"font-variation-settings",
|
||||
"FontVariationSettings",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_pref="layout.css.font-variations.enabled",
|
||||
has_effect_on_gecko_scrollbars=False,
|
||||
initial_value="computed::FontVariationSettings::normal()",
|
||||
|
@ -180,7 +191,7 @@ ${helpers.predefined_type(
|
|||
${helpers.predefined_type(
|
||||
"font-language-override",
|
||||
"FontLanguageOverride",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
initial_value="computed::FontLanguageOverride::zero()",
|
||||
initial_specified_value="specified::FontLanguageOverride::normal()",
|
||||
animation_value_type="discrete",
|
||||
|
@ -191,7 +202,7 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword_system(
|
||||
"font-optical-sizing",
|
||||
"auto none",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_pref="layout.css.font-variations.enabled",
|
||||
has_effect_on_gecko_scrollbars=False,
|
||||
gecko_ffi_name="mFont.opticalSizing",
|
||||
|
@ -203,7 +214,7 @@ ${helpers.single_keyword_system(
|
|||
${helpers.predefined_type(
|
||||
"-x-lang",
|
||||
"XLang",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
initial_value="computed::XLang::get_initial_value()",
|
||||
animation_value_type="none",
|
||||
enabled_in="",
|
||||
|
@ -213,7 +224,7 @@ ${helpers.predefined_type(
|
|||
${helpers.predefined_type(
|
||||
"-moz-script-size-multiplier",
|
||||
"MozScriptSizeMultiplier",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
initial_value="computed::MozScriptSizeMultiplier::get_initial_value()",
|
||||
animation_value_type="none",
|
||||
gecko_ffi_name="mScriptSizeMultiplier",
|
||||
|
@ -225,8 +236,8 @@ ${helpers.predefined_type(
|
|||
"-moz-script-level",
|
||||
"MozScriptLevel",
|
||||
0,
|
||||
engines="gecko",
|
||||
animation_value_type="none",
|
||||
products="gecko",
|
||||
enabled_in="ua",
|
||||
gecko_ffi_name="mScriptLevel",
|
||||
spec="Internal (not web-exposed)",
|
||||
|
@ -235,9 +246,9 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"-moz-math-display",
|
||||
"inline block",
|
||||
engines="gecko",
|
||||
gecko_constant_prefix="NS_MATHML_DISPLAYSTYLE",
|
||||
gecko_ffi_name="mMathDisplay",
|
||||
products="gecko",
|
||||
enabled_in="ua",
|
||||
spec="Internal (not web-exposed)",
|
||||
animation_value_type="none",
|
||||
|
@ -249,9 +260,9 @@ ${helpers.single_keyword(
|
|||
fraktur double-struck bold-fraktur sans-serif
|
||||
bold-sans-serif sans-serif-italic sans-serif-bold-italic
|
||||
monospace initial tailed looped stretched""",
|
||||
engines="gecko",
|
||||
gecko_constant_prefix="NS_MATHML_MATHVARIANT",
|
||||
gecko_ffi_name="mMathVariant",
|
||||
products="gecko",
|
||||
spec="Internal (not web-exposed)",
|
||||
animation_value_type="none",
|
||||
enabled_in="",
|
||||
|
@ -262,8 +273,8 @@ ${helpers.predefined_type(
|
|||
"-moz-script-min-size",
|
||||
"MozScriptMinSize",
|
||||
"specified::MozScriptMinSize::get_initial_value()",
|
||||
engines="gecko",
|
||||
animation_value_type="none",
|
||||
products="gecko",
|
||||
enabled_in="",
|
||||
gecko_ffi_name="mScriptMinSize",
|
||||
spec="Internal (not web-exposed)",
|
||||
|
@ -273,13 +284,13 @@ ${helpers.predefined_type(
|
|||
"-x-text-zoom",
|
||||
"XTextZoom",
|
||||
"computed::XTextZoom(true)",
|
||||
engines="gecko",
|
||||
animation_value_type="none",
|
||||
products="gecko",
|
||||
enabled_in="",
|
||||
spec="Internal (not web-exposed)",
|
||||
)}
|
||||
|
||||
% if product == "gecko":
|
||||
% if engine == "gecko":
|
||||
pub mod system_font {
|
||||
//! We deal with system fonts here
|
||||
//!
|
||||
|
@ -470,7 +481,7 @@ ${helpers.predefined_type(
|
|||
use cssparser::Parser;
|
||||
|
||||
// We don't parse system fonts, but in the interest of not littering
|
||||
// a lot of code with `if product == gecko` conditionals, we have a
|
||||
// a lot of code with `if engine == "gecko"` conditionals, we have a
|
||||
// dummy system font module that does nothing
|
||||
|
||||
#[derive(Clone, Copy, Debug, Eq, Hash, MallocSizeOf, PartialEq, SpecifiedValueInfo, ToCss, ToShmem)]
|
||||
|
@ -487,11 +498,11 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"-moz-osx-font-smoothing",
|
||||
"auto grayscale",
|
||||
engines="gecko",
|
||||
gecko_constant_prefix="NS_FONT_SMOOTHING",
|
||||
gecko_ffi_name="mFont.smoothing",
|
||||
gecko_pref="layout.css.osx-font-smoothing.enabled",
|
||||
has_effect_on_gecko_scrollbars=False,
|
||||
products="gecko",
|
||||
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth)",
|
||||
animation_value_type="discrete",
|
||||
)}
|
||||
|
@ -500,8 +511,8 @@ ${helpers.predefined_type(
|
|||
"-moz-font-smoothing-background-color",
|
||||
"color::MozFontSmoothingBackgroundColor",
|
||||
"computed::color::MozFontSmoothingBackgroundColor::transparent()",
|
||||
engines="gecko",
|
||||
animation_value_type="none",
|
||||
products="gecko",
|
||||
gecko_ffi_name="mFont.fontSmoothingBackgroundColor",
|
||||
enabled_in="chrome",
|
||||
spec="None (Nonstandard internal property)",
|
||||
|
@ -511,8 +522,8 @@ ${helpers.predefined_type(
|
|||
"-moz-min-font-size-ratio",
|
||||
"Percentage",
|
||||
"computed::Percentage::hundred()",
|
||||
engines="gecko",
|
||||
animation_value_type="none",
|
||||
products="gecko",
|
||||
enabled_in="ua",
|
||||
spec="Nonstandard (Internal-only)",
|
||||
)}
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
${helpers.single_keyword(
|
||||
"visibility",
|
||||
"visible hidden",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
extra_gecko_values="collapse",
|
||||
gecko_ffi_name="mVisible",
|
||||
animation_value_type="ComputedValue",
|
||||
|
@ -21,11 +23,12 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"writing-mode",
|
||||
"horizontal-tb vertical-rl vertical-lr",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
extra_gecko_values="sideways-rl sideways-lr",
|
||||
extra_gecko_aliases="lr=horizontal-tb lr-tb=horizontal-tb \
|
||||
gecko_aliases="lr=horizontal-tb lr-tb=horizontal-tb \
|
||||
rl=horizontal-tb rl-tb=horizontal-tb \
|
||||
tb=vertical-rl tb-rl=vertical-rl",
|
||||
servo_pref="layout.writing-mode.enabled",
|
||||
servo_2013_pref="layout.writing-mode.enabled",
|
||||
animation_value_type="none",
|
||||
spec="https://drafts.csswg.org/css-writing-modes/#propdef-writing-mode",
|
||||
servo_restyle_damage="rebuild_and_reflow",
|
||||
|
@ -34,6 +37,7 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"direction",
|
||||
"ltr rtl",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
animation_value_type="none",
|
||||
spec="https://drafts.csswg.org/css-writing-modes/#propdef-direction",
|
||||
needs_conversion=True,
|
||||
|
@ -43,8 +47,8 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"text-orientation",
|
||||
"mixed upright sideways",
|
||||
extra_gecko_aliases="sideways-right=sideways",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_aliases="sideways-right=sideways",
|
||||
animation_value_type="none",
|
||||
spec="https://drafts.csswg.org/css-writing-modes/#propdef-text-orientation",
|
||||
)}
|
||||
|
@ -53,7 +57,8 @@ ${helpers.single_keyword(
|
|||
// https://drafts.csswg.org/css-color/
|
||||
${helpers.single_keyword(
|
||||
"color-adjust",
|
||||
"economy exact", products="gecko",
|
||||
"economy exact",
|
||||
engines="gecko",
|
||||
gecko_enum_prefix="StyleColorAdjust",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-color/#propdef-color-adjust",
|
||||
|
@ -64,9 +69,10 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"image-rendering",
|
||||
"auto crisp-edges",
|
||||
engines="gecko servo-2013",
|
||||
extra_gecko_values="optimizespeed optimizequality",
|
||||
extra_servo_values="pixelated",
|
||||
extra_gecko_aliases="-moz-crisp-edges=crisp-edges",
|
||||
extra_servo_2013_values="pixelated",
|
||||
gecko_aliases="-moz-crisp-edges=crisp-edges",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-images/#propdef-image-rendering",
|
||||
)}
|
||||
|
@ -74,7 +80,7 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"image-orientation",
|
||||
"none from-image",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_enum_prefix="StyleImageOrientation",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-images/#propdef-image-orientation",
|
||||
|
|
|
@ -14,7 +14,7 @@ ${helpers.single_keyword(
|
|||
"dominant-baseline",
|
||||
"""auto ideographic alphabetic hanging mathematical central middle
|
||||
text-after-edge text-before-edge""",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://www.w3.org/TR/css-inline-3/#propdef-dominant-baseline",
|
||||
)}
|
||||
|
@ -22,7 +22,7 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"text-anchor",
|
||||
"start middle end",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://www.w3.org/TR/SVG/text.html#TextAnchorProperty",
|
||||
)}
|
||||
|
@ -31,7 +31,7 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"color-interpolation",
|
||||
"srgb auto linearrgb",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://www.w3.org/TR/SVG11/painting.html#ColorInterpolationProperty",
|
||||
)}
|
||||
|
@ -39,7 +39,7 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"color-interpolation-filters",
|
||||
"linearrgb auto srgb",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_constant_prefix="NS_STYLE_COLOR_INTERPOLATION",
|
||||
animation_value_type="discrete",
|
||||
spec="https://www.w3.org/TR/SVG11/painting.html#ColorInterpolationFiltersProperty",
|
||||
|
@ -49,7 +49,7 @@ ${helpers.predefined_type(
|
|||
"fill",
|
||||
"SVGPaint",
|
||||
"crate::values::computed::SVGPaint::black()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="IntermediateSVGPaint",
|
||||
boxed=True,
|
||||
spec="https://www.w3.org/TR/SVG2/painting.html#SpecifyingFillPaint",
|
||||
|
@ -59,7 +59,7 @@ ${helpers.predefined_type(
|
|||
"fill-opacity",
|
||||
"SVGOpacity",
|
||||
"Default::default()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="ComputedValue",
|
||||
spec="https://svgwg.org/svg2-draft/painting.html#FillOpacity",
|
||||
)}
|
||||
|
@ -68,8 +68,8 @@ ${helpers.predefined_type(
|
|||
"fill-rule",
|
||||
"FillRule",
|
||||
"Default::default()",
|
||||
engines="gecko",
|
||||
needs_context=False,
|
||||
products="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://www.w3.org/TR/SVG11/painting.html#FillRuleProperty",
|
||||
)}
|
||||
|
@ -77,7 +77,7 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"shape-rendering",
|
||||
"auto optimizespeed crispedges geometricprecision",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://www.w3.org/TR/SVG11/painting.html#ShapeRenderingProperty",
|
||||
)}
|
||||
|
@ -86,7 +86,7 @@ ${helpers.predefined_type(
|
|||
"stroke",
|
||||
"SVGPaint",
|
||||
"Default::default()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="IntermediateSVGPaint",
|
||||
boxed=True,
|
||||
spec="https://www.w3.org/TR/SVG2/painting.html#SpecifyingStrokePaint",
|
||||
|
@ -96,7 +96,7 @@ ${helpers.predefined_type(
|
|||
"stroke-width",
|
||||
"SVGWidth",
|
||||
"computed::SVGWidth::one()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="crate::values::computed::SVGWidth",
|
||||
spec="https://www.w3.org/TR/SVG2/painting.html#StrokeWidth",
|
||||
)}
|
||||
|
@ -104,7 +104,7 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"stroke-linecap",
|
||||
"butt round square",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://www.w3.org/TR/SVG11/painting.html#StrokeLinecapProperty",
|
||||
)}
|
||||
|
@ -112,7 +112,7 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"stroke-linejoin",
|
||||
"miter round bevel",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://www.w3.org/TR/SVG11/painting.html#StrokeLinejoinProperty",
|
||||
)}
|
||||
|
@ -121,7 +121,7 @@ ${helpers.predefined_type(
|
|||
"stroke-miterlimit",
|
||||
"NonNegativeNumber",
|
||||
"From::from(4.0)",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="crate::values::computed::NonNegativeNumber",
|
||||
spec="https://www.w3.org/TR/SVG2/painting.html#StrokeMiterlimitProperty",
|
||||
)}
|
||||
|
@ -130,7 +130,7 @@ ${helpers.predefined_type(
|
|||
"stroke-opacity",
|
||||
"SVGOpacity",
|
||||
"Default::default()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="ComputedValue",
|
||||
spec="https://svgwg.org/svg2-draft/painting.html#StrokeOpacity",
|
||||
)}
|
||||
|
@ -139,7 +139,7 @@ ${helpers.predefined_type(
|
|||
"stroke-dasharray",
|
||||
"SVGStrokeDashArray",
|
||||
"Default::default()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="crate::values::computed::SVGStrokeDashArray",
|
||||
spec="https://www.w3.org/TR/SVG2/painting.html#StrokeDashing",
|
||||
)}
|
||||
|
@ -148,7 +148,7 @@ ${helpers.predefined_type(
|
|||
"stroke-dashoffset",
|
||||
"SVGLength",
|
||||
"computed::SVGLength::zero()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="ComputedValue",
|
||||
spec="https://www.w3.org/TR/SVG2/painting.html#StrokeDashing",
|
||||
)}
|
||||
|
@ -158,8 +158,8 @@ ${helpers.predefined_type(
|
|||
"clip-rule",
|
||||
"FillRule",
|
||||
"Default::default()",
|
||||
engines="gecko",
|
||||
needs_context=False,
|
||||
products="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://www.w3.org/TR/SVG11/masking.html#ClipRuleProperty",
|
||||
)}
|
||||
|
@ -168,7 +168,7 @@ ${helpers.predefined_type(
|
|||
"marker-start",
|
||||
"url::UrlOrNone",
|
||||
"computed::url::UrlOrNone::none()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://www.w3.org/TR/SVG2/painting.html#VertexMarkerProperties",
|
||||
)}
|
||||
|
@ -177,7 +177,7 @@ ${helpers.predefined_type(
|
|||
"marker-mid",
|
||||
"url::UrlOrNone",
|
||||
"computed::url::UrlOrNone::none()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://www.w3.org/TR/SVG2/painting.html#VertexMarkerProperties",
|
||||
)}
|
||||
|
@ -186,7 +186,7 @@ ${helpers.predefined_type(
|
|||
"marker-end",
|
||||
"url::UrlOrNone",
|
||||
"computed::url::UrlOrNone::none()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://www.w3.org/TR/SVG2/painting.html#VertexMarkerProperties",
|
||||
)}
|
||||
|
@ -195,7 +195,7 @@ ${helpers.predefined_type(
|
|||
"paint-order",
|
||||
"SVGPaintOrder",
|
||||
"computed::SVGPaintOrder::normal()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://www.w3.org/TR/SVG2/painting.html#PaintOrder",
|
||||
)}
|
||||
|
@ -204,7 +204,7 @@ ${helpers.predefined_type(
|
|||
"-moz-context-properties",
|
||||
"MozContextProperties",
|
||||
"computed::MozContextProperties::default()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="none",
|
||||
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-context-properties)",
|
||||
)}
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
${helpers.single_keyword(
|
||||
"border-collapse",
|
||||
"separate collapse",
|
||||
engines="gecko servo-2013",
|
||||
gecko_enum_prefix="StyleBorderCollapse",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-tables/#propdef-border-collapse",
|
||||
|
@ -18,6 +19,7 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"empty-cells",
|
||||
"show hide",
|
||||
engines="gecko servo-2013",
|
||||
gecko_constant_prefix="NS_STYLE_TABLE_EMPTY_CELLS",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-tables/#propdef-empty-cells",
|
||||
|
@ -27,6 +29,7 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"caption-side",
|
||||
"top bottom",
|
||||
engines="gecko servo-2013",
|
||||
extra_gecko_values="right left top-outside bottom-outside",
|
||||
needs_conversion="True",
|
||||
animation_value_type="discrete",
|
||||
|
@ -38,6 +41,8 @@ ${helpers.predefined_type(
|
|||
"border-spacing",
|
||||
"BorderSpacing",
|
||||
"computed::BorderSpacing::zero()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
animation_value_type="BorderSpacing",
|
||||
boxed=True,
|
||||
spec="https://drafts.csswg.org/css-tables/#propdef-border-spacing",
|
||||
|
|
|
@ -10,6 +10,7 @@ ${helpers.predefined_type(
|
|||
"color",
|
||||
"ColorPropertyValue",
|
||||
"::cssparser::RGBA::new(0, 0, 0, 255)",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
animation_value_type="AnimatedRGBA",
|
||||
ignored_when_colors_disabled="True",
|
||||
spec="https://drafts.csswg.org/css-color/#color",
|
||||
|
@ -19,6 +20,8 @@ ${helpers.predefined_type(
|
|||
"line-height",
|
||||
"LineHeight",
|
||||
"computed::LineHeight::normal()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
animation_value_type="LineHeight",
|
||||
flags="GETCS_NEEDS_LAYOUT_FLUSH",
|
||||
spec="https://drafts.csswg.org/css2/visudet.html#propdef-line-height",
|
||||
|
@ -31,6 +34,7 @@ ${helpers.predefined_type(
|
|||
"text-transform",
|
||||
"TextTransform",
|
||||
"computed::TextTransform::none()",
|
||||
engines="gecko servo-2013",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-text/#propdef-text-transform",
|
||||
servo_restyle_damage="rebuild_and_reflow",
|
||||
|
@ -39,8 +43,8 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"hyphens",
|
||||
"manual none auto",
|
||||
engines="gecko",
|
||||
gecko_enum_prefix="StyleHyphens",
|
||||
products="gecko",
|
||||
animation_value_type="discrete",
|
||||
extra_prefixes="moz",
|
||||
spec="https://drafts.csswg.org/css-text/#propdef-hyphens",
|
||||
|
@ -50,9 +54,10 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"-moz-text-size-adjust",
|
||||
"auto none",
|
||||
engines="gecko",
|
||||
gecko_constant_prefix="NS_STYLE_TEXT_SIZE_ADJUST",
|
||||
gecko_ffi_name="mTextSizeAdjust",
|
||||
products="gecko", animation_value_type="discrete",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-size-adjust/#adjustment-control",
|
||||
alias="-webkit-text-size-adjust",
|
||||
)}
|
||||
|
@ -61,6 +66,8 @@ ${helpers.predefined_type(
|
|||
"text-indent",
|
||||
"LengthPercentage",
|
||||
"computed::LengthPercentage::zero()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
animation_value_type="ComputedValue",
|
||||
spec="https://drafts.csswg.org/css-text/#propdef-text-indent",
|
||||
allow_quirks="Yes",
|
||||
|
@ -73,6 +80,8 @@ ${helpers.predefined_type(
|
|||
"overflow-wrap",
|
||||
"OverflowWrap",
|
||||
"computed::OverflowWrap::Normal",
|
||||
engines="servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-text/#propdef-overflow-wrap",
|
||||
alias="word-wrap",
|
||||
|
@ -84,6 +93,8 @@ ${helpers.predefined_type(
|
|||
"word-break",
|
||||
"WordBreak",
|
||||
"computed::WordBreak::Normal",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-text/#propdef-word-break",
|
||||
needs_context=False,
|
||||
|
@ -94,8 +105,10 @@ ${helpers.predefined_type(
|
|||
<%helpers:single_keyword
|
||||
name="text-justify"
|
||||
values="auto none inter-word"
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
extra_gecko_values="inter-character"
|
||||
extra_specified="${'distribute' if product == 'gecko' else ''}"
|
||||
extra_specified="${'distribute' if engine == 'gecko' else ''}"
|
||||
gecko_enum_prefix="StyleTextJustify"
|
||||
animation_value_type="discrete"
|
||||
gecko_pref="layout.css.text-justify.enabled"
|
||||
|
@ -103,7 +116,7 @@ ${helpers.predefined_type(
|
|||
spec="https://drafts.csswg.org/css-text/#propdef-text-justify"
|
||||
servo_restyle_damage="rebuild_and_reflow"
|
||||
>
|
||||
% if product == 'gecko':
|
||||
% if engine == 'gecko':
|
||||
impl ToComputedValue for SpecifiedValue {
|
||||
type ComputedValue = computed_value::T;
|
||||
|
||||
|
@ -133,7 +146,7 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"text-align-last",
|
||||
"auto start end left right center justify",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_constant_prefix="NS_STYLE_TEXT_ALIGN",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-text/#propdef-text-align-last",
|
||||
|
@ -144,6 +157,8 @@ ${helpers.predefined_type(
|
|||
"text-align",
|
||||
"TextAlign",
|
||||
"computed::TextAlign::Start",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-text/#propdef-text-align",
|
||||
servo_restyle_damage = "reflow",
|
||||
|
@ -153,6 +168,7 @@ ${helpers.predefined_type(
|
|||
"letter-spacing",
|
||||
"LetterSpacing",
|
||||
"computed::LetterSpacing::normal()",
|
||||
engines="gecko servo-2013",
|
||||
animation_value_type="ComputedValue",
|
||||
spec="https://drafts.csswg.org/css-text/#propdef-letter-spacing",
|
||||
servo_restyle_damage="rebuild_and_reflow",
|
||||
|
@ -162,6 +178,7 @@ ${helpers.predefined_type(
|
|||
"word-spacing",
|
||||
"WordSpacing",
|
||||
"computed::WordSpacing::zero()",
|
||||
engines="gecko servo-2013",
|
||||
animation_value_type="ComputedValue",
|
||||
spec="https://drafts.csswg.org/css-text/#propdef-word-spacing",
|
||||
servo_restyle_damage="rebuild_and_reflow",
|
||||
|
@ -170,6 +187,8 @@ ${helpers.predefined_type(
|
|||
<%helpers:single_keyword
|
||||
name="white-space"
|
||||
values="normal pre nowrap pre-wrap pre-line"
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
extra_gecko_values="break-spaces -moz-pre-space"
|
||||
gecko_enum_prefix="StyleWhiteSpace"
|
||||
needs_conversion="True"
|
||||
|
@ -177,7 +196,7 @@ ${helpers.predefined_type(
|
|||
spec="https://drafts.csswg.org/css-text/#propdef-white-space"
|
||||
servo_restyle_damage="rebuild_and_reflow"
|
||||
>
|
||||
% if product != "gecko":
|
||||
% if engine == "servo-2013":
|
||||
impl SpecifiedValue {
|
||||
pub fn allow_wrap(&self) -> bool {
|
||||
match *self {
|
||||
|
@ -216,6 +235,7 @@ ${helpers.predefined_type(
|
|||
"text-shadow",
|
||||
"SimpleShadow",
|
||||
None,
|
||||
engines="gecko servo-2013",
|
||||
vector=True,
|
||||
vector_animation_type="with_zero",
|
||||
animation_value_type="AnimatedTextShadowList",
|
||||
|
@ -228,8 +248,8 @@ ${helpers.predefined_type(
|
|||
"text-emphasis-style",
|
||||
"TextEmphasisStyle",
|
||||
None,
|
||||
engines="gecko",
|
||||
initial_specified_value="SpecifiedValue::None",
|
||||
products="gecko",
|
||||
boxed=True,
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-text-decor/#propdef-text-emphasis-style",
|
||||
|
@ -239,8 +259,8 @@ ${helpers.predefined_type(
|
|||
"text-emphasis-position",
|
||||
"TextEmphasisPosition",
|
||||
"computed::TextEmphasisPosition::over_right()",
|
||||
engines="gecko",
|
||||
initial_specified_value="specified::TextEmphasisPosition::over_right()",
|
||||
products="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-text-decor/#propdef-text-emphasis-position",
|
||||
)}
|
||||
|
@ -249,8 +269,8 @@ ${helpers.predefined_type(
|
|||
"text-emphasis-color",
|
||||
"Color",
|
||||
"computed_value::T::currentcolor()",
|
||||
engines="gecko",
|
||||
initial_specified_value="specified::Color::currentcolor()",
|
||||
products="gecko",
|
||||
animation_value_type="AnimatedColor",
|
||||
ignored_when_colors_disabled=True,
|
||||
spec="https://drafts.csswg.org/css-text-decor/#propdef-text-emphasis-color",
|
||||
|
@ -260,7 +280,7 @@ ${helpers.predefined_type(
|
|||
"-moz-tab-size",
|
||||
"NonNegativeLengthOrNumber",
|
||||
"generics::length::LengthOrNumber::Number(From::from(8.0))",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="LengthOrNumber",
|
||||
spec="https://drafts.csswg.org/css-text-3/#tab-size-property",
|
||||
)}
|
||||
|
@ -269,7 +289,7 @@ ${helpers.predefined_type(
|
|||
"line-break",
|
||||
"LineBreak",
|
||||
"computed::LineBreak::Auto",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-text-3/#line-break-property",
|
||||
needs_context=False,
|
||||
|
@ -281,7 +301,7 @@ ${helpers.predefined_type(
|
|||
"-webkit-text-fill-color",
|
||||
"Color",
|
||||
"computed_value::T::currentcolor()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="AnimatedColor",
|
||||
ignored_when_colors_disabled=True,
|
||||
spec="https://compat.spec.whatwg.org/#the-webkit-text-fill-color",
|
||||
|
@ -292,7 +312,7 @@ ${helpers.predefined_type(
|
|||
"Color",
|
||||
"computed_value::T::currentcolor()",
|
||||
initial_specified_value="specified::Color::currentcolor()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="AnimatedColor",
|
||||
ignored_when_colors_disabled=True,
|
||||
spec="https://compat.spec.whatwg.org/#the-webkit-text-stroke-color",
|
||||
|
@ -302,9 +322,9 @@ ${helpers.predefined_type(
|
|||
"-webkit-text-stroke-width",
|
||||
"BorderSideWidth",
|
||||
"crate::values::computed::NonNegativeLength::new(0.)",
|
||||
engines="gecko",
|
||||
initial_specified_value="specified::BorderSideWidth::zero()",
|
||||
computed_type="crate::values::computed::NonNegativeLength",
|
||||
products="gecko",
|
||||
spec="https://compat.spec.whatwg.org/#the-webkit-text-stroke-width",
|
||||
animation_value_type="discrete",
|
||||
)}
|
||||
|
@ -314,7 +334,7 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"ruby-align",
|
||||
"space-around start center space-between",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-ruby/#ruby-align-property",
|
||||
)}
|
||||
|
@ -322,7 +342,7 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"ruby-position",
|
||||
"over under",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-ruby/#ruby-position-property",
|
||||
)}
|
||||
|
@ -333,7 +353,7 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"text-combine-upright",
|
||||
"none all",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-writing-modes-3/#text-combine-upright",
|
||||
)}
|
||||
|
@ -342,6 +362,7 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"text-rendering",
|
||||
"auto optimizespeed optimizelegibility geometricprecision",
|
||||
engines="gecko servo-2013",
|
||||
gecko_enum_prefix="StyleTextRendering",
|
||||
animation_value_type="discrete",
|
||||
spec="https://www.w3.org/TR/SVG11/painting.html#TextRenderingProperty",
|
||||
|
@ -353,10 +374,10 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"-moz-control-character-visibility",
|
||||
"hidden visible",
|
||||
engines="gecko",
|
||||
gecko_constant_prefix="NS_STYLE_CONTROL_CHARACTER_VISIBILITY",
|
||||
animation_value_type="none",
|
||||
gecko_ffi_name="mControlCharacterVisibility",
|
||||
products="gecko",
|
||||
spec="Nonstandard",
|
||||
)}
|
||||
|
||||
|
@ -365,7 +386,7 @@ ${helpers.predefined_type(
|
|||
"text-underline-offset",
|
||||
"LengthOrAuto",
|
||||
"computed::LengthOrAuto::auto()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="ComputedValue",
|
||||
gecko_pref="layout.css.text-underline-offset.enabled",
|
||||
has_effect_on_gecko_scrollbars=False,
|
||||
|
@ -377,7 +398,7 @@ ${helpers.predefined_type(
|
|||
"text-decoration-skip-ink",
|
||||
"TextDecorationSkipInk",
|
||||
"computed::TextDecorationSkipInk::Auto",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
needs_context=False,
|
||||
animation_value_type="discrete",
|
||||
gecko_pref="layout.css.text-decoration-skip-ink.enabled",
|
||||
|
|
|
@ -10,6 +10,7 @@ ${helpers.predefined_type(
|
|||
"cursor",
|
||||
"Cursor",
|
||||
"computed::Cursor::auto()",
|
||||
engines="gecko servo-2013",
|
||||
initial_specified_value="specified::Cursor::auto()",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-ui/#cursor",
|
||||
|
@ -21,6 +22,7 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"pointer-events",
|
||||
"auto none",
|
||||
engines="gecko servo-2013",
|
||||
animation_value_type="discrete",
|
||||
extra_gecko_values="visiblepainted visiblefill visiblestroke visible painted fill stroke all",
|
||||
spec="https://www.w3.org/TR/SVG11/interact.html#PointerEventsProperty",
|
||||
|
@ -29,7 +31,7 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"-moz-user-input",
|
||||
"auto none",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_ffi_name="mUserInput",
|
||||
gecko_enum_prefix="StyleUserInput",
|
||||
animation_value_type="discrete",
|
||||
|
@ -39,7 +41,7 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"-moz-user-modify",
|
||||
"read-only read-write write-only",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_ffi_name="mUserModify",
|
||||
gecko_enum_prefix="StyleUserModify",
|
||||
needs_conversion=True,
|
||||
|
@ -50,7 +52,8 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"-moz-user-focus",
|
||||
"none ignore normal select-after select-before select-menu select-same select-all",
|
||||
products="gecko", gecko_ffi_name="mUserFocus",
|
||||
engines="gecko",
|
||||
gecko_ffi_name="mUserFocus",
|
||||
gecko_enum_prefix="StyleUserFocus",
|
||||
animation_value_type="discrete",
|
||||
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-user-focus)",
|
||||
|
@ -60,17 +63,18 @@ ${helpers.predefined_type(
|
|||
"caret-color",
|
||||
"ColorOrAuto",
|
||||
"generics::color::ColorOrAuto::Auto",
|
||||
engines="gecko",
|
||||
spec="https://drafts.csswg.org/css-ui/#caret-color",
|
||||
animation_value_type="AnimatedCaretColor",
|
||||
boxed=True,
|
||||
ignored_when_colors_disabled=True,
|
||||
products="gecko",
|
||||
)}
|
||||
|
||||
${helpers.predefined_type(
|
||||
"scrollbar-color",
|
||||
"ui::ScrollbarColor",
|
||||
"Default::default()",
|
||||
engines="gecko",
|
||||
spec="https://drafts.csswg.org/css-scrollbars-1/#scrollbar-color",
|
||||
gecko_pref="layout.css.scrollbar-color.enabled",
|
||||
# Surprisingly, yes the computed value of scrollbar-color has no effect on
|
||||
|
@ -81,5 +85,4 @@ ${helpers.predefined_type(
|
|||
boxed=True,
|
||||
ignored_when_colors_disabled=True,
|
||||
enabled_in="chrome",
|
||||
products="gecko",
|
||||
)}
|
||||
|
|
|
@ -6,9 +6,15 @@
|
|||
|
||||
<% data.new_style_struct("List", inherited=True) %>
|
||||
|
||||
${helpers.single_keyword("list-style-position", "outside inside", animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-lists/#propdef-list-style-position",
|
||||
servo_restyle_damage="rebuild_and_reflow")}
|
||||
${helpers.single_keyword(
|
||||
"list-style-position",
|
||||
"outside inside",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-lists/#propdef-list-style-position",
|
||||
servo_restyle_damage="rebuild_and_reflow",
|
||||
)}
|
||||
|
||||
// TODO(pcwalton): Implement the full set of counter styles per CSS-COUNTER-STYLES [1] 6.1:
|
||||
//
|
||||
|
@ -16,22 +22,26 @@ ${helpers.single_keyword("list-style-position", "outside inside", animation_valu
|
|||
// upper-roman
|
||||
//
|
||||
// [1]: http://dev.w3.org/csswg/css-counter-styles/
|
||||
% if product == "servo":
|
||||
% if engine in ["servo-2013", "servo-2020"]:
|
||||
${helpers.single_keyword(
|
||||
"list-style-type",
|
||||
"""disc none circle square decimal disclosure-open disclosure-closed lower-alpha upper-alpha
|
||||
arabic-indic bengali cambodian cjk-decimal devanagari gujarati gurmukhi kannada khmer lao
|
||||
malayalam mongolian myanmar oriya persian telugu thai tibetan cjk-earthly-branch
|
||||
cjk-heavenly-stem lower-greek hiragana hiragana-iroha katakana katakana-iroha""",
|
||||
engines="servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-lists/#propdef-list-style-type",
|
||||
servo_restyle_damage="rebuild_and_reflow",
|
||||
)}
|
||||
% else:
|
||||
% endif
|
||||
% if engine == "gecko":
|
||||
${helpers.predefined_type(
|
||||
"list-style-type",
|
||||
"ListStyleType",
|
||||
"computed::ListStyleType::disc()",
|
||||
engines="gecko",
|
||||
initial_specified_value="specified::ListStyleType::disc()",
|
||||
animation_value_type="discrete",
|
||||
boxed=True,
|
||||
|
@ -43,6 +53,7 @@ ${helpers.single_keyword("list-style-position", "outside inside", animation_valu
|
|||
${helpers.predefined_type(
|
||||
"list-style-image",
|
||||
"url::ImageUrlOrNone",
|
||||
engines="gecko servo-2013",
|
||||
initial_value="computed::url::ImageUrlOrNone::none()",
|
||||
initial_specified_value="specified::url::ImageUrlOrNone::none()",
|
||||
animation_value_type="discrete",
|
||||
|
@ -54,6 +65,7 @@ ${helpers.predefined_type(
|
|||
"quotes",
|
||||
"Quotes",
|
||||
"computed::Quotes::get_initial_value()",
|
||||
engines="gecko servo-2013",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-content/#propdef-quotes",
|
||||
servo_restyle_damage="rebuild_and_reflow",
|
||||
|
@ -63,8 +75,8 @@ ${helpers.predefined_type(
|
|||
"-moz-image-region",
|
||||
"ClipRectOrAuto",
|
||||
"computed::ClipRectOrAuto::auto()",
|
||||
engines="gecko",
|
||||
animation_value_type="ComputedValue",
|
||||
products="gecko",
|
||||
boxed=True,
|
||||
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-image-region)",
|
||||
)}
|
||||
|
@ -73,8 +85,8 @@ ${helpers.predefined_type(
|
|||
"-moz-list-reversed",
|
||||
"MozListReversed",
|
||||
"computed::MozListReversed::False",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
products="gecko",
|
||||
enabled_in="ua",
|
||||
needs_context=False,
|
||||
spec="Internal implementation detail for <ol reversed>",
|
||||
|
|
|
@ -16,7 +16,9 @@
|
|||
"margin-%s" % side[0],
|
||||
"LengthPercentageOrAuto",
|
||||
"computed::LengthPercentageOrAuto::zero()",
|
||||
alias=maybe_moz_logical_alias(product, side, "-moz-margin-%s"),
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
alias=maybe_moz_logical_alias(engine, side, "-moz-margin-%s"),
|
||||
allow_quirks="No" if side[1] else "Yes",
|
||||
animation_value_type="ComputedValue",
|
||||
logical=side[1],
|
||||
|
@ -33,7 +35,7 @@
|
|||
"scroll-margin-%s" % side[0],
|
||||
"Length",
|
||||
"computed::Length::zero()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_pref="layout.css.scroll-snap-v1.enabled",
|
||||
logical=side[1],
|
||||
logical_group="scroll-margin",
|
||||
|
|
|
@ -14,6 +14,7 @@ ${helpers.predefined_type(
|
|||
"outline-color",
|
||||
"Color",
|
||||
"computed_value::T::currentcolor()",
|
||||
engines="gecko servo-2013",
|
||||
initial_specified_value="specified::Color::currentcolor()",
|
||||
animation_value_type="AnimatedColor",
|
||||
ignored_when_colors_disabled=True,
|
||||
|
@ -24,6 +25,8 @@ ${helpers.predefined_type(
|
|||
"outline-style",
|
||||
"OutlineStyle",
|
||||
"computed::OutlineStyle::none()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
initial_specified_value="specified::OutlineStyle::none()",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-ui/#propdef-outline-style",
|
||||
|
@ -33,6 +36,8 @@ ${helpers.predefined_type(
|
|||
"outline-width",
|
||||
"BorderSideWidth",
|
||||
"crate::values::computed::NonNegativeLength::new(3.)",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
initial_specified_value="specified::BorderSideWidth::Medium",
|
||||
computed_type="crate::values::computed::NonNegativeLength",
|
||||
animation_value_type="NonNegativeLength",
|
||||
|
@ -45,7 +50,7 @@ ${helpers.predefined_type(
|
|||
"-moz-outline-radius-" + corner,
|
||||
"BorderCornerRadius",
|
||||
"computed::BorderCornerRadius::zero()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
boxed=True,
|
||||
animation_value_type="BorderCornerRadius",
|
||||
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-outline-radius)",
|
||||
|
@ -56,7 +61,7 @@ ${helpers.predefined_type(
|
|||
"outline-offset",
|
||||
"Length",
|
||||
"crate::values::computed::Length::new(0.)",
|
||||
products="servo gecko",
|
||||
engines="gecko servo-2013",
|
||||
animation_value_type="ComputedValue",
|
||||
spec="https://drafts.csswg.org/css-ui/#propdef-outline-offset",
|
||||
)}
|
||||
|
|
|
@ -16,7 +16,9 @@
|
|||
"padding-%s" % side[0],
|
||||
"NonNegativeLengthPercentage",
|
||||
"computed::NonNegativeLengthPercentage::zero()",
|
||||
alias=maybe_moz_logical_alias(product, side, "-moz-padding-%s"),
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
alias=maybe_moz_logical_alias(engine, side, "-moz-padding-%s"),
|
||||
animation_value_type="NonNegativeLengthPercentage",
|
||||
logical=side[1],
|
||||
logical_group="padding",
|
||||
|
@ -32,7 +34,7 @@
|
|||
"scroll-padding-%s" % side[0],
|
||||
"NonNegativeLengthPercentageOrAuto",
|
||||
"computed::NonNegativeLengthPercentageOrAuto::auto()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_pref="layout.css.scroll-snap-v1.enabled",
|
||||
logical=side[1],
|
||||
logical_group="scroll-padding",
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
side,
|
||||
"LengthPercentageOrAuto",
|
||||
"computed::LengthPercentageOrAuto::auto()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
spec="https://www.w3.org/TR/CSS2/visuren.html#propdef-%s" % side,
|
||||
flags="GETCS_NEEDS_LAYOUT_FLUSH",
|
||||
animation_value_type="ComputedValue",
|
||||
|
@ -28,6 +30,8 @@
|
|||
"inset-%s" % side,
|
||||
"LengthPercentageOrAuto",
|
||||
"computed::LengthPercentageOrAuto::auto()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
spec="https://drafts.csswg.org/css-logical-props/#propdef-inset-%s" % side,
|
||||
flags="GETCS_NEEDS_LAYOUT_FLUSH",
|
||||
alias="offset-%s:layout.css.offset-logical-properties.enabled" % side,
|
||||
|
@ -59,6 +63,8 @@ ${helpers.predefined_type(
|
|||
"z-index",
|
||||
"ZIndex",
|
||||
"computed::ZIndex::auto()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
spec="https://www.w3.org/TR/CSS2/visuren.html#z-index",
|
||||
flags="CREATES_STACKING_CONTEXT",
|
||||
animation_value_type="ComputedValue",
|
||||
|
@ -71,6 +77,7 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"flex-direction",
|
||||
"row row-reverse column column-reverse",
|
||||
engines="gecko servo-2013",
|
||||
spec="https://drafts.csswg.org/css-flexbox/#flex-direction-property",
|
||||
extra_prefixes="webkit",
|
||||
animation_value_type="discrete",
|
||||
|
@ -81,27 +88,31 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"flex-wrap",
|
||||
"nowrap wrap wrap-reverse",
|
||||
engines="gecko servo-2013",
|
||||
spec="https://drafts.csswg.org/css-flexbox/#flex-wrap-property",
|
||||
extra_prefixes="webkit",
|
||||
animation_value_type="discrete",
|
||||
servo_restyle_damage = "reflow",
|
||||
)}
|
||||
|
||||
% if product == "servo":
|
||||
% if engine == "servo-2013":
|
||||
// FIXME: Update Servo to support the same Syntax as Gecko.
|
||||
${helpers.single_keyword(
|
||||
"justify-content",
|
||||
"flex-start stretch flex-end center space-between space-around",
|
||||
engines="servo-2013",
|
||||
extra_prefixes="webkit",
|
||||
spec="https://drafts.csswg.org/css-align/#propdef-justify-content",
|
||||
animation_value_type="discrete",
|
||||
servo_restyle_damage = "reflow",
|
||||
)}
|
||||
% else:
|
||||
% endif
|
||||
% if engine == "gecko":
|
||||
${helpers.predefined_type(
|
||||
"justify-content",
|
||||
"JustifyContent",
|
||||
"specified::JustifyContent(specified::ContentDistribution::normal())",
|
||||
engines="gecko",
|
||||
spec="https://drafts.csswg.org/css-align/#propdef-justify-content",
|
||||
extra_prefixes="webkit",
|
||||
animation_value_type="discrete",
|
||||
|
@ -109,11 +120,12 @@ ${helpers.single_keyword(
|
|||
)}
|
||||
% endif
|
||||
|
||||
% if product == "servo":
|
||||
% if engine in ["servo-2013", "servo-2020"]:
|
||||
// FIXME: Update Servo to support the same Syntax as Gecko.
|
||||
${helpers.single_keyword(
|
||||
"align-content",
|
||||
"stretch flex-start flex-end center space-between space-around",
|
||||
engines="servo-2013",
|
||||
extra_prefixes="webkit",
|
||||
spec="https://drafts.csswg.org/css-align/#propdef-align-content",
|
||||
animation_value_type="discrete",
|
||||
|
@ -123,16 +135,20 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"align-items",
|
||||
"stretch flex-start flex-end center baseline",
|
||||
engines="servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
extra_prefixes="webkit",
|
||||
spec="https://drafts.csswg.org/css-flexbox/#align-items-property",
|
||||
animation_value_type="discrete",
|
||||
servo_restyle_damage="reflow",
|
||||
)}
|
||||
% else:
|
||||
% endif
|
||||
% if engine == "gecko":
|
||||
${helpers.predefined_type(
|
||||
"align-content",
|
||||
"AlignContent",
|
||||
"specified::AlignContent(specified::ContentDistribution::normal())",
|
||||
engines="gecko",
|
||||
spec="https://drafts.csswg.org/css-align/#propdef-align-content",
|
||||
extra_prefixes="webkit",
|
||||
animation_value_type="discrete",
|
||||
|
@ -143,6 +159,7 @@ ${helpers.single_keyword(
|
|||
"align-items",
|
||||
"AlignItems",
|
||||
"specified::AlignItems::normal()",
|
||||
engines="gecko",
|
||||
spec="https://drafts.csswg.org/css-align/#propdef-align-items",
|
||||
extra_prefixes="webkit",
|
||||
animation_value_type="discrete",
|
||||
|
@ -156,6 +173,7 @@ ${helpers.single_keyword(
|
|||
"justify-items",
|
||||
"JustifyItems",
|
||||
"computed::JustifyItems::legacy()",
|
||||
engines="gecko",
|
||||
spec="https://drafts.csswg.org/css-align/#propdef-justify-items",
|
||||
animation_value_type="discrete",
|
||||
)}
|
||||
|
@ -169,6 +187,7 @@ ${helpers.predefined_type(
|
|||
"flex-grow",
|
||||
"NonNegativeNumber",
|
||||
"From::from(0.0)",
|
||||
engines="gecko servo-2013",
|
||||
spec="https://drafts.csswg.org/css-flexbox/#flex-grow-property",
|
||||
extra_prefixes="webkit",
|
||||
animation_value_type="NonNegativeNumber",
|
||||
|
@ -179,6 +198,7 @@ ${helpers.predefined_type(
|
|||
"flex-shrink",
|
||||
"NonNegativeNumber",
|
||||
"From::from(1.0)",
|
||||
engines="gecko servo-2013",
|
||||
spec="https://drafts.csswg.org/css-flexbox/#flex-shrink-property",
|
||||
extra_prefixes="webkit",
|
||||
animation_value_type="NonNegativeNumber",
|
||||
|
@ -186,21 +206,25 @@ ${helpers.predefined_type(
|
|||
)}
|
||||
|
||||
// https://drafts.csswg.org/css-align/#align-self-property
|
||||
% if product == "servo":
|
||||
% if engine in ["servo-2013", "servo-2020"]:
|
||||
// FIXME: Update Servo to support the same syntax as Gecko.
|
||||
${helpers.single_keyword(
|
||||
"align-self",
|
||||
"auto stretch flex-start flex-end center baseline",
|
||||
engines="servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
extra_prefixes="webkit",
|
||||
spec="https://drafts.csswg.org/css-flexbox/#propdef-align-self",
|
||||
animation_value_type="discrete",
|
||||
servo_restyle_damage = "reflow",
|
||||
)}
|
||||
% else:
|
||||
% endif
|
||||
% if engine == "gecko":
|
||||
${helpers.predefined_type(
|
||||
"align-self",
|
||||
"AlignSelf",
|
||||
"specified::AlignSelf(specified::SelfAlignment::auto())",
|
||||
engines="gecko",
|
||||
spec="https://drafts.csswg.org/css-align/#align-self-property",
|
||||
extra_prefixes="webkit",
|
||||
animation_value_type="discrete",
|
||||
|
@ -210,6 +234,7 @@ ${helpers.predefined_type(
|
|||
"justify-self",
|
||||
"JustifySelf",
|
||||
"specified::JustifySelf(specified::SelfAlignment::auto())",
|
||||
engines="gecko",
|
||||
spec="https://drafts.csswg.org/css-align/#justify-self-property",
|
||||
animation_value_type="discrete",
|
||||
)}
|
||||
|
@ -223,6 +248,7 @@ ${helpers.predefined_type(
|
|||
"order",
|
||||
"Integer",
|
||||
"0",
|
||||
engines="gecko servo-2013",
|
||||
extra_prefixes="webkit",
|
||||
animation_value_type="ComputedValue",
|
||||
spec="https://drafts.csswg.org/css-flexbox/#order-property",
|
||||
|
@ -233,6 +259,7 @@ ${helpers.predefined_type(
|
|||
"flex-basis",
|
||||
"FlexBasis",
|
||||
"computed::FlexBasis::auto()",
|
||||
engines="gecko servo-2013",
|
||||
spec="https://drafts.csswg.org/css-flexbox/#flex-basis-property",
|
||||
extra_prefixes="webkit",
|
||||
animation_value_type="FlexBasis",
|
||||
|
@ -251,6 +278,8 @@ ${helpers.predefined_type(
|
|||
size,
|
||||
"Size",
|
||||
"computed::Size::auto()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
logical=logical,
|
||||
logical_group="size",
|
||||
allow_quirks="No" if logical else "Yes",
|
||||
|
@ -264,6 +293,8 @@ ${helpers.predefined_type(
|
|||
"min-%s" % size,
|
||||
"Size",
|
||||
"computed::Size::auto()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
logical=logical,
|
||||
logical_group="min-size",
|
||||
allow_quirks="No" if logical else "Yes",
|
||||
|
@ -275,6 +306,8 @@ ${helpers.predefined_type(
|
|||
"max-%s" % size,
|
||||
"MaxSize",
|
||||
"computed::MaxSize::none()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
logical=logical,
|
||||
logical_group="max-size",
|
||||
allow_quirks="No" if logical else "Yes",
|
||||
|
@ -287,6 +320,8 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"box-sizing",
|
||||
"content-box border-box",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
extra_prefixes="moz:layout.css.prefixes.box-sizing webkit",
|
||||
spec="https://drafts.csswg.org/css-ui/#propdef-box-sizing",
|
||||
gecko_enum_prefix="StyleBoxSizing",
|
||||
|
@ -298,7 +333,7 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"object-fit",
|
||||
"fill contain cover none scale-down",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-images/#propdef-object-fit",
|
||||
)}
|
||||
|
@ -307,7 +342,7 @@ ${helpers.predefined_type(
|
|||
"object-position",
|
||||
"Position",
|
||||
"computed::Position::zero()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
boxed=True,
|
||||
spec="https://drafts.csswg.org/css-images-3/#the-object-position",
|
||||
animation_value_type="ComputedValue",
|
||||
|
@ -319,9 +354,9 @@ ${helpers.predefined_type(
|
|||
"grid-%s-%s" % (kind, range),
|
||||
"GridLine",
|
||||
"Default::default()",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-grid/#propdef-grid-%s-%s" % (kind, range),
|
||||
products="gecko",
|
||||
)}
|
||||
% endfor
|
||||
|
||||
|
@ -331,9 +366,9 @@ ${helpers.predefined_type(
|
|||
"grid-auto-%ss" % kind,
|
||||
"TrackSize",
|
||||
"Default::default()",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-grid/#propdef-grid-auto-%ss" % kind,
|
||||
products="gecko",
|
||||
boxed=True,
|
||||
)}
|
||||
|
||||
|
@ -341,7 +376,7 @@ ${helpers.predefined_type(
|
|||
"grid-template-%ss" % kind,
|
||||
"GridTemplateComponent",
|
||||
"specified::GenericGridTemplateComponent::None",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
spec="https://drafts.csswg.org/css-grid/#propdef-grid-template-%ss" % kind,
|
||||
boxed=True,
|
||||
flags="GETCS_NEEDS_LAYOUT_FLUSH",
|
||||
|
@ -354,7 +389,7 @@ ${helpers.predefined_type(
|
|||
"grid-auto-flow",
|
||||
"GridAutoFlow",
|
||||
"computed::GridAutoFlow::row()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-grid/#propdef-grid-auto-flow",
|
||||
)}
|
||||
|
@ -363,7 +398,7 @@ ${helpers.predefined_type(
|
|||
"grid-template-areas",
|
||||
"GridTemplateAreas",
|
||||
"computed::GridTemplateAreas::none()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-grid/#propdef-grid-template-areas",
|
||||
)}
|
||||
|
@ -372,9 +407,10 @@ ${helpers.predefined_type(
|
|||
"column-gap",
|
||||
"length::NonNegativeLengthPercentageOrNormal",
|
||||
"computed::length::NonNegativeLengthPercentageOrNormal::normal()",
|
||||
alias="grid-column-gap" if product == "gecko" else "",
|
||||
engines="gecko servo-2013",
|
||||
alias="grid-column-gap" if engine == "gecko" else "",
|
||||
extra_prefixes="moz",
|
||||
servo_pref="layout.columns.enabled",
|
||||
servo_2013_pref="layout.columns.enabled",
|
||||
spec="https://drafts.csswg.org/css-align-3/#propdef-column-gap",
|
||||
animation_value_type="NonNegativeLengthPercentageOrNormal",
|
||||
servo_restyle_damage="reflow",
|
||||
|
@ -385,8 +421,8 @@ ${helpers.predefined_type(
|
|||
"row-gap",
|
||||
"length::NonNegativeLengthPercentageOrNormal",
|
||||
"computed::length::NonNegativeLengthPercentageOrNormal::normal()",
|
||||
engines="gecko",
|
||||
alias="grid-row-gap",
|
||||
products="gecko",
|
||||
spec="https://drafts.csswg.org/css-align-3/#propdef-row-gap",
|
||||
animation_value_type="NonNegativeLengthPercentageOrNormal",
|
||||
servo_restyle_damage="reflow",
|
||||
|
@ -400,6 +436,7 @@ ${helpers.predefined_type(
|
|||
"aspect-ratio",
|
||||
"Number",
|
||||
"computed::Number::zero()",
|
||||
engines="gecko servo-2013",
|
||||
animation_value_type="ComputedValue",
|
||||
spec="Internal, for now",
|
||||
enabled_in="",
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
${helpers.single_keyword(
|
||||
"vector-effect",
|
||||
"none non-scaling-stroke",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://www.w3.org/TR/SVGTiny12/painting.html#VectorEffectProperty",
|
||||
)}
|
||||
|
@ -20,7 +20,7 @@ ${helpers.predefined_type(
|
|||
"stop-color",
|
||||
"Color",
|
||||
"RGBA::new(0, 0, 0, 255).into()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="AnimatedRGBA",
|
||||
spec="https://www.w3.org/TR/SVGTiny12/painting.html#StopColorProperty",
|
||||
)}
|
||||
|
@ -29,7 +29,7 @@ ${helpers.predefined_type(
|
|||
"stop-opacity",
|
||||
"Opacity",
|
||||
"1.0",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="ComputedValue",
|
||||
spec="https://svgwg.org/svg2-draft/pservers.html#StopOpacityProperty",
|
||||
)}
|
||||
|
@ -40,7 +40,7 @@ ${helpers.predefined_type(
|
|||
"flood-color",
|
||||
"Color",
|
||||
"RGBA::new(0, 0, 0, 255).into()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="AnimatedColor",
|
||||
spec="https://www.w3.org/TR/SVG/filters.html#FloodColorProperty",
|
||||
)}
|
||||
|
@ -49,7 +49,7 @@ ${helpers.predefined_type(
|
|||
"flood-opacity",
|
||||
"Opacity",
|
||||
"1.0",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="ComputedValue",
|
||||
spec="https://drafts.fxtf.org/filter-effects/#FloodOpacityProperty",
|
||||
)}
|
||||
|
@ -58,7 +58,7 @@ ${helpers.predefined_type(
|
|||
"lighting-color",
|
||||
"Color",
|
||||
"RGBA::new(255, 255, 255, 255).into()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="AnimatedColor",
|
||||
spec="https://www.w3.org/TR/SVG/filters.html#LightingColorProperty",
|
||||
)}
|
||||
|
@ -68,7 +68,7 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"mask-type",
|
||||
"luminance alpha",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.fxtf.org/css-masking/#propdef-mask-type",
|
||||
)}
|
||||
|
@ -77,7 +77,7 @@ ${helpers.predefined_type(
|
|||
"clip-path",
|
||||
"basic_shape::ClippingShape",
|
||||
"generics::basic_shape::ShapeSource::None",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="basic_shape::ClippingShape",
|
||||
flags="CREATES_STACKING_CONTEXT",
|
||||
spec="https://drafts.fxtf.org/css-masking/#propdef-clip-path",
|
||||
|
@ -86,9 +86,9 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"mask-mode",
|
||||
"match-source alpha luminance",
|
||||
engines="gecko",
|
||||
gecko_enum_prefix="StyleMaskMode",
|
||||
vector=True,
|
||||
products="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.fxtf.org/css-masking/#propdef-mask-mode",
|
||||
)}
|
||||
|
@ -97,8 +97,8 @@ ${helpers.predefined_type(
|
|||
"mask-repeat",
|
||||
"BackgroundRepeat",
|
||||
"computed::BackgroundRepeat::repeat()",
|
||||
engines="gecko",
|
||||
initial_specified_value="specified::BackgroundRepeat::repeat()",
|
||||
products="gecko",
|
||||
extra_prefixes="webkit",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.fxtf.org/css-masking/#propdef-mask-repeat",
|
||||
|
@ -110,7 +110,7 @@ ${helpers.predefined_type(
|
|||
"mask-position-" + axis,
|
||||
"position::" + direction + "Position",
|
||||
"computed::LengthPercentage::zero()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
extra_prefixes="webkit",
|
||||
initial_specified_value="specified::PositionComponent::Center",
|
||||
spec="https://drafts.fxtf.org/css-masking/#propdef-mask-position",
|
||||
|
@ -123,9 +123,9 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"mask-clip",
|
||||
"border-box content-box padding-box",
|
||||
engines="gecko",
|
||||
extra_gecko_values="fill-box stroke-box view-box no-clip",
|
||||
vector=True,
|
||||
products="gecko",
|
||||
extra_prefixes="webkit",
|
||||
gecko_enum_prefix="StyleGeometryBox",
|
||||
gecko_inexhaustive=True,
|
||||
|
@ -136,9 +136,9 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"mask-origin",
|
||||
"border-box content-box padding-box",
|
||||
engines="gecko",
|
||||
extra_gecko_values="fill-box stroke-box view-box",
|
||||
vector=True,
|
||||
products="gecko",
|
||||
extra_prefixes="webkit",
|
||||
gecko_enum_prefix="StyleGeometryBox",
|
||||
gecko_inexhaustive=True,
|
||||
|
@ -150,8 +150,8 @@ ${helpers.predefined_type(
|
|||
"mask-size",
|
||||
"background::BackgroundSize",
|
||||
"computed::BackgroundSize::auto()",
|
||||
engines="gecko",
|
||||
initial_specified_value="specified::BackgroundSize::auto()",
|
||||
products="gecko",
|
||||
extra_prefixes="webkit",
|
||||
spec="https://drafts.fxtf.org/css-masking/#propdef-mask-size",
|
||||
animation_value_type="MaskSizeList",
|
||||
|
@ -162,8 +162,8 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"mask-composite",
|
||||
"add subtract intersect exclude",
|
||||
engines="gecko",
|
||||
vector=True,
|
||||
products="gecko",
|
||||
extra_prefixes="webkit",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.fxtf.org/css-masking/#propdef-mask-composite",
|
||||
|
@ -172,12 +172,12 @@ ${helpers.single_keyword(
|
|||
${helpers.predefined_type(
|
||||
"mask-image",
|
||||
"ImageLayer",
|
||||
engines="gecko",
|
||||
initial_value="computed::ImageLayer::none()",
|
||||
initial_specified_value="specified::ImageLayer::none()",
|
||||
parse_method="parse_with_cors_anonymous",
|
||||
spec="https://drafts.fxtf.org/css-masking/#propdef-mask-image",
|
||||
vector=True,
|
||||
products="gecko",
|
||||
extra_prefixes="webkit",
|
||||
animation_value_type="discrete",
|
||||
flags="CREATES_STACKING_CONTEXT",
|
||||
|
@ -187,7 +187,7 @@ ${helpers.predefined_type(
|
|||
"x",
|
||||
"LengthPercentage",
|
||||
"computed::LengthPercentage::zero()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="ComputedValue",
|
||||
spec="https://svgwg.org/svg2-draft/geometry.html#X",
|
||||
)}
|
||||
|
@ -196,7 +196,7 @@ ${helpers.predefined_type(
|
|||
"y",
|
||||
"LengthPercentage",
|
||||
"computed::LengthPercentage::zero()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="ComputedValue",
|
||||
spec="https://svgwg.org/svg2-draft/geometry.html#Y",
|
||||
)}
|
||||
|
@ -205,7 +205,7 @@ ${helpers.predefined_type(
|
|||
"cx",
|
||||
"LengthPercentage",
|
||||
"computed::LengthPercentage::zero()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="ComputedValue",
|
||||
spec="https://svgwg.org/svg2-draft/geometry.html#CX",
|
||||
)}
|
||||
|
@ -214,7 +214,7 @@ ${helpers.predefined_type(
|
|||
"cy",
|
||||
"LengthPercentage",
|
||||
"computed::LengthPercentage::zero()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="ComputedValue",
|
||||
spec="https://svgwg.org/svg2-draft/geometry.html#CY",
|
||||
)}
|
||||
|
@ -223,7 +223,7 @@ ${helpers.predefined_type(
|
|||
"rx",
|
||||
"NonNegativeLengthPercentageOrAuto",
|
||||
"computed::NonNegativeLengthPercentageOrAuto::auto()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="LengthPercentageOrAuto",
|
||||
spec="https://svgwg.org/svg2-draft/geometry.html#RX",
|
||||
)}
|
||||
|
@ -232,7 +232,7 @@ ${helpers.predefined_type(
|
|||
"ry",
|
||||
"NonNegativeLengthPercentageOrAuto",
|
||||
"computed::NonNegativeLengthPercentageOrAuto::auto()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="LengthPercentageOrAuto",
|
||||
spec="https://svgwg.org/svg2-draft/geometry.html#RY",
|
||||
)}
|
||||
|
@ -241,7 +241,7 @@ ${helpers.predefined_type(
|
|||
"r",
|
||||
"NonNegativeLengthPercentage",
|
||||
"computed::NonNegativeLengthPercentage::zero()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="LengthPercentage",
|
||||
spec="https://svgwg.org/svg2-draft/geometry.html#R",
|
||||
)}
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
${helpers.single_keyword(
|
||||
"table-layout",
|
||||
"auto fixed",
|
||||
engines="gecko servo-2013",
|
||||
gecko_ffi_name="mLayoutStrategy",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-tables/#propdef-table-layout",
|
||||
|
@ -19,7 +20,7 @@ ${helpers.predefined_type(
|
|||
"-x-span",
|
||||
"XSpan",
|
||||
"computed::XSpan(1)",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
spec="Internal-only (for `<col span>` pres attr)",
|
||||
animation_value_type="none",
|
||||
enabled_in="",
|
||||
|
|
|
@ -11,6 +11,7 @@ ${helpers.predefined_type(
|
|||
"text-overflow",
|
||||
"TextOverflow",
|
||||
"computed::TextOverflow::get_initial_value()",
|
||||
engines="gecko servo-2013",
|
||||
animation_value_type="discrete",
|
||||
boxed=True,
|
||||
spec="https://drafts.csswg.org/css-ui/#propdef-text-overflow",
|
||||
|
@ -20,6 +21,7 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"unicode-bidi",
|
||||
"normal embed isolate bidi-override isolate-override plaintext",
|
||||
engines="gecko servo-2013",
|
||||
animation_value_type="none",
|
||||
spec="https://drafts.csswg.org/css-writing-modes/#propdef-unicode-bidi",
|
||||
servo_restyle_damage="rebuild_and_reflow",
|
||||
|
@ -29,6 +31,8 @@ ${helpers.predefined_type(
|
|||
"text-decoration-line",
|
||||
"TextDecorationLine",
|
||||
"specified::TextDecorationLine::none()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
initial_specified_value="specified::TextDecorationLine::none()",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-text-decor/#propdef-text-decoration-line",
|
||||
|
@ -38,7 +42,7 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"text-decoration-style",
|
||||
"solid double dotted dashed wavy -moz-none",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-text-decor/#propdef-text-decoration-style",
|
||||
)}
|
||||
|
@ -47,8 +51,8 @@ ${helpers.predefined_type(
|
|||
"text-decoration-color",
|
||||
"Color",
|
||||
"computed_value::T::currentcolor()",
|
||||
engines="gecko",
|
||||
initial_specified_value="specified::Color::currentcolor()",
|
||||
products="gecko",
|
||||
animation_value_type="AnimatedColor",
|
||||
ignored_when_colors_disabled=True,
|
||||
spec="https://drafts.csswg.org/css-text-decor/#propdef-text-decoration-color",
|
||||
|
@ -58,9 +62,9 @@ ${helpers.predefined_type(
|
|||
"initial-letter",
|
||||
"InitialLetter",
|
||||
"computed::InitialLetter::normal()",
|
||||
engines="gecko",
|
||||
initial_specified_value="specified::InitialLetter::normal()",
|
||||
animation_value_type="discrete",
|
||||
products="gecko",
|
||||
gecko_pref="layout.css.initial-letter.enabled",
|
||||
spec="https://drafts.csswg.org/css-inline/#sizing-drop-initials",
|
||||
)}
|
||||
|
@ -69,7 +73,7 @@ ${helpers.predefined_type(
|
|||
"text-decoration-thickness",
|
||||
"LengthOrAuto",
|
||||
"computed::LengthOrAuto::auto()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
animation_value_type="ComputedValue",
|
||||
gecko_pref="layout.css.text-decoration-thickness.enabled",
|
||||
spec="https://drafts.csswg.org/css-text-decor-4/#text-decoration-width-property"
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
${helpers.single_keyword(
|
||||
"ime-mode",
|
||||
"auto normal active disabled inactive",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_ffi_name="mIMEMode",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-ui/#input-method-editor",
|
||||
|
@ -23,7 +23,7 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"scrollbar-width",
|
||||
"auto thin none",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_enum_prefix="StyleScrollbarWidth",
|
||||
animation_value_type="discrete",
|
||||
gecko_pref="layout.css.scrollbar-width.enabled",
|
||||
|
@ -35,7 +35,7 @@ ${helpers.predefined_type(
|
|||
"user-select",
|
||||
"UserSelect",
|
||||
"computed::UserSelect::Auto",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
extra_prefixes="moz webkit",
|
||||
animation_value_type="discrete",
|
||||
needs_context=False,
|
||||
|
@ -46,7 +46,7 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"-moz-window-dragging",
|
||||
"default drag no-drag",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_ffi_name="mWindowDragging",
|
||||
gecko_enum_prefix="StyleWindowDragging",
|
||||
animation_value_type="discrete",
|
||||
|
@ -56,7 +56,7 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"-moz-window-shadow",
|
||||
"none default menu tooltip sheet",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_ffi_name="mWindowShadow",
|
||||
gecko_constant_prefix="NS_STYLE_WINDOW_SHADOW",
|
||||
animation_value_type="discrete",
|
||||
|
@ -68,7 +68,7 @@ ${helpers.predefined_type(
|
|||
"-moz-window-opacity",
|
||||
"Opacity",
|
||||
"1.0",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_ffi_name="mWindowOpacity",
|
||||
animation_value_type="ComputedValue",
|
||||
spec="None (Nonstandard internal property)",
|
||||
|
@ -79,7 +79,7 @@ ${helpers.predefined_type(
|
|||
"-moz-window-transform",
|
||||
"Transform",
|
||||
"generics::transform::Transform::none()",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
flags="GETCS_NEEDS_LAYOUT_FLUSH",
|
||||
animation_value_type="ComputedValue",
|
||||
spec="None (Nonstandard internal property)",
|
||||
|
@ -90,9 +90,9 @@ ${helpers.predefined_type(
|
|||
"-moz-window-transform-origin",
|
||||
"TransformOrigin",
|
||||
"computed::TransformOrigin::initial_value()",
|
||||
engines="gecko",
|
||||
animation_value_type="ComputedValue",
|
||||
gecko_ffi_name="mWindowTransformOrigin",
|
||||
products="gecko",
|
||||
boxed=True,
|
||||
flags="GETCS_NEEDS_LAYOUT_FLUSH",
|
||||
spec="None (Nonstandard internal property)",
|
||||
|
@ -104,7 +104,7 @@ ${helpers.predefined_type(
|
|||
"-moz-force-broken-image-icon",
|
||||
"MozForceBrokenImageIcon",
|
||||
"computed::MozForceBrokenImageIcon::false_value()",
|
||||
engines="gecko",
|
||||
animation_value_type="discrete",
|
||||
products="gecko",
|
||||
spec="None (Nonstandard Firefox-only property)",
|
||||
)}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
${helpers.single_keyword(
|
||||
"-moz-box-align",
|
||||
"stretch start center baseline end",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_ffi_name="mBoxAlign",
|
||||
gecko_enum_prefix="StyleBoxAlign",
|
||||
animation_value_type="discrete",
|
||||
|
@ -22,7 +22,7 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"-moz-box-direction",
|
||||
"normal reverse",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_ffi_name="mBoxDirection",
|
||||
gecko_enum_prefix="StyleBoxDirection",
|
||||
animation_value_type="discrete",
|
||||
|
@ -34,7 +34,7 @@ ${helpers.predefined_type(
|
|||
"-moz-box-flex",
|
||||
"NonNegativeNumber",
|
||||
"From::from(0.)",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_ffi_name="mBoxFlex",
|
||||
animation_value_type="NonNegativeNumber",
|
||||
alias="-webkit-box-flex",
|
||||
|
@ -44,9 +44,9 @@ ${helpers.predefined_type(
|
|||
${helpers.single_keyword(
|
||||
"-moz-box-orient",
|
||||
"horizontal vertical",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_ffi_name="mBoxOrient",
|
||||
extra_gecko_aliases="inline-axis=horizontal block-axis=vertical",
|
||||
gecko_aliases="inline-axis=horizontal block-axis=vertical",
|
||||
gecko_enum_prefix="StyleBoxOrient",
|
||||
animation_value_type="discrete",
|
||||
alias="-webkit-box-orient",
|
||||
|
@ -56,7 +56,8 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"-moz-box-pack",
|
||||
"start center end justify",
|
||||
products="gecko", gecko_ffi_name="mBoxPack",
|
||||
engines="gecko",
|
||||
gecko_ffi_name="mBoxPack",
|
||||
gecko_enum_prefix="StyleBoxPack",
|
||||
animation_value_type="discrete",
|
||||
alias="-webkit-box-pack",
|
||||
|
@ -66,7 +67,7 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"-moz-stack-sizing",
|
||||
"stretch-to-fit ignore ignore-horizontal ignore-vertical",
|
||||
products="gecko",
|
||||
engines="gecko",
|
||||
gecko_ffi_name="mStackSizing",
|
||||
gecko_enum_prefix="StyleStackSizing",
|
||||
animation_value_type="discrete",
|
||||
|
@ -77,8 +78,8 @@ ${helpers.predefined_type(
|
|||
"-moz-box-ordinal-group",
|
||||
"Integer",
|
||||
"0",
|
||||
engines="gecko",
|
||||
parse_method="parse_non_negative",
|
||||
products="gecko",
|
||||
alias="-webkit-box-ordinal-group",
|
||||
gecko_ffi_name="mBoxOrdinal",
|
||||
animation_value_type="discrete",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue