From 9dfa7fb13633573d56343c71c9e7e6d725261714 Mon Sep 17 00:00:00 2001 From: Jonathan Kew Date: Tue, 18 Apr 2023 11:47:07 +0000 Subject: [PATCH] style: Implement CSS and rendering (but not copy/paste) support for the (non-standard) -webkit-text-security property Differential Revision: https://phabricator.services.mozilla.com/D174951 --- .../style/properties/counted_unknown_properties.py | 1 - .../style/properties/longhands/inherited_text.mako.rs | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/components/style/properties/counted_unknown_properties.py b/components/style/properties/counted_unknown_properties.py index 08905b15721..4de688cf5f5 100644 --- a/components/style/properties/counted_unknown_properties.py +++ b/components/style/properties/counted_unknown_properties.py @@ -32,7 +32,6 @@ COUNTED_UNKNOWN_PROPERTIES = [ "-webkit-print-color-adjust", "-webkit-mask-box-image", "-webkit-line-break", - "-webkit-text-security", "alignment-baseline", "-webkit-writing-mode", "baseline-shift", diff --git a/components/style/properties/longhands/inherited_text.mako.rs b/components/style/properties/longhands/inherited_text.mako.rs index 48eaaecd52f..154c5376044 100644 --- a/components/style/properties/longhands/inherited_text.mako.rs +++ b/components/style/properties/longhands/inherited_text.mako.rs @@ -399,3 +399,12 @@ ${helpers.predefined_type( animation_value_type="discrete", spec="https://drafts.csswg.org/css-color-adjust-1/#forced-color-adjust-prop", )} + +${helpers.single_keyword( + "-webkit-text-security", + "none circle disc square", + engines="gecko", + gecko_enum_prefix="StyleTextSecurity", + animation_value_type="discrete", + spec="https://drafts.csswg.org/css-text/#MISSING", +)}