From 7567ddd262f93c059142550f0077eaa1ed0306ff Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Wed, 17 May 2023 00:29:11 +0200 Subject: [PATCH] style: Hide -moz-outline-radius behind a pref This property does nothing since bug 315209 got implemented. Every single user that I checked was doing the same math by hand, so hooray for good defaults :-) Differential Revision: https://phabricator.services.mozilla.com/D112253 --- components/style/properties/longhands/outline.mako.rs | 1 + components/style/properties/shorthands/outline.mako.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/components/style/properties/longhands/outline.mako.rs b/components/style/properties/longhands/outline.mako.rs index 5c3dd15cbb6..e5cd09fbe82 100644 --- a/components/style/properties/longhands/outline.mako.rs +++ b/components/style/properties/longhands/outline.mako.rs @@ -51,6 +51,7 @@ ${helpers.predefined_type( engines="gecko", boxed=True, animation_value_type="BorderCornerRadius", + gecko_pref="layout.css.moz-outline-radius.enabled", spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-outline-radius)", )} % endfor diff --git a/components/style/properties/shorthands/outline.mako.rs b/components/style/properties/shorthands/outline.mako.rs index 75b5fcb717b..db397498919 100644 --- a/components/style/properties/shorthands/outline.mako.rs +++ b/components/style/properties/shorthands/outline.mako.rs @@ -83,6 +83,7 @@ <%helpers:shorthand name="-moz-outline-radius" engines="gecko" + gecko_pref="layout.css.moz-outline-radius.enabled" sub_properties="${' '.join( '-moz-outline-radius-%s' % corner for corner in ['topleft', 'topright', 'bottomright', 'bottomleft']