From 0488a3d3d359ed23a2137550ff578163dccf20b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sun, 20 Jan 2019 16:48:19 +0100 Subject: [PATCH] style: Implement the inset shorthand. Differential Revision: https://phabricator.services.mozilla.com/D16704 --- components/style/properties/shorthands/position.mako.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/style/properties/shorthands/position.mako.rs b/components/style/properties/shorthands/position.mako.rs index 561affe952c..ad00ba8eafd 100644 --- a/components/style/properties/shorthands/position.mako.rs +++ b/components/style/properties/shorthands/position.mako.rs @@ -763,6 +763,15 @@ } +// See https://github.com/w3c/csswg-drafts/issues/3525 for the quirks stuff. +${helpers.four_sides_shorthand( + "inset", + "%s", + "specified::LengthPercentageOrAuto::parse", + spec="https://drafts.csswg.org/css-logical/#propdef-inset", + allow_quirks=False, +)} + % for axis in ["block", "inline"]: <% spec = "https://drafts.csswg.org/css-logical/#propdef-inset-%s" % axis