From 1d95da7aec9de466cf0a16d832b6993dad4228fe Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Tue, 17 Sep 2024 21:32:49 +0200 Subject: [PATCH] Enable `object-fit` and `object-position` for Servo (#77) Signed-off-by: Martin Robinson Co-authored-by: Oriol Brufau --- style/properties/longhands/position.mako.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/style/properties/longhands/position.mako.rs b/style/properties/longhands/position.mako.rs index 982970445..1d97a3ac9 100644 --- a/style/properties/longhands/position.mako.rs +++ b/style/properties/longhands/position.mako.rs @@ -320,7 +320,7 @@ ${helpers.single_keyword( ${helpers.single_keyword( "object-fit", "fill contain cover none scale-down", - engines="gecko", + engines="gecko servo", animation_type="discrete", spec="https://drafts.csswg.org/css-images/#propdef-object-fit", gecko_enum_prefix = "StyleObjectFit", @@ -331,7 +331,7 @@ ${helpers.predefined_type( "object-position", "Position", "computed::Position::center()", - engines="gecko", + engines="gecko servo", boxed=True, spec="https://drafts.csswg.org/css-images-3/#the-object-position", affects="layout",