From 30fc75f4abb508f3f05594232ccdd0e7ae81cef2 Mon Sep 17 00:00:00 2001 From: Thomas Wisniewski Date: Wed, 23 Nov 2022 20:26:14 +0000 Subject: [PATCH] Bug 1800969 - Alias -webkit-clip-path to clip-path for webcompat; r=emilio Differential Revision: https://phabricator.services.mozilla.com/D162674 --- .../shared/css/generated/properties-db.js | 28 +++++++++++++++++++ layout/style/test/property_database.js | 7 +++++ .../properties/counted_unknown_properties.py | 1 - .../style/properties/longhands/svg.mako.rs | 1 + 4 files changed, 36 insertions(+), 1 deletion(-) diff --git a/devtools/shared/css/generated/properties-db.js b/devtools/shared/css/generated/properties-db.js index d3ec0a69f852..8227254aae92 100644 --- a/devtools/shared/css/generated/properties-db.js +++ b/devtools/shared/css/generated/properties-db.js @@ -1916,6 +1916,34 @@ exports.CSS_PROPERTIES = { "unset" ] }, + "-webkit-clip-path": { + "isInherited": false, + "subproperties": [ + "clip-path" + ], + "supports": [], + "values": [ + "border-box", + "circle", + "content-box", + "ellipse", + "fill-box", + "inherit", + "initial", + "inset", + "margin-box", + "none", + "padding-box", + "path", + "polygon", + "revert", + "revert-layer", + "stroke-box", + "unset", + "url", + "view-box" + ] + }, "-webkit-filter": { "isInherited": false, "subproperties": [ diff --git a/layout/style/test/property_database.js b/layout/style/test/property_database.js index 4fa3701474b2..e27fc0b9dd88 100644 --- a/layout/style/test/property_database.js +++ b/layout/style/test/property_database.js @@ -11092,6 +11092,13 @@ var gCSSProperties = { alias_for: "animation-timing-function", subproperties: ["animation-timing-function"], }, + "-webkit-clip-path": { + domProp: "webkitClipPath", + inherited: false, + type: CSS_TYPE_SHORTHAND_AND_LONGHAND, + alias_for: "clip-path", + subproperties: ["clip-path"], + }, "-webkit-filter": { domProp: "webkitFilter", inherited: false, diff --git a/servo/components/style/properties/counted_unknown_properties.py b/servo/components/style/properties/counted_unknown_properties.py index 997fd167a072..08905b157213 100644 --- a/servo/components/style/properties/counted_unknown_properties.py +++ b/servo/components/style/properties/counted_unknown_properties.py @@ -19,7 +19,6 @@ COUNTED_UNKNOWN_PROPERTIES = [ "text-size-adjust", "-webkit-font-feature-settings", "-webkit-user-drag", - "-webkit-clip-path", "orphans", "widows", "-webkit-user-modify", diff --git a/servo/components/style/properties/longhands/svg.mako.rs b/servo/components/style/properties/longhands/svg.mako.rs index 13704e5953b4..cb8764a3fafa 100644 --- a/servo/components/style/properties/longhands/svg.mako.rs +++ b/servo/components/style/properties/longhands/svg.mako.rs @@ -80,6 +80,7 @@ ${helpers.predefined_type( "basic_shape::ClipPath", "generics::basic_shape::ClipPath::None", engines="gecko", + extra_prefixes="webkit", animation_value_type="basic_shape::ClipPath", spec="https://drafts.fxtf.org/css-masking/#propdef-clip-path", )}