Bug 1941949 - Expand the list of background-*/border-* properties that disable native styling of form controls. r=emilio
Certain (background-*/border-*) related properties were not triggering the behavior that disables native styling for buttons. Updated the `border_background_properties` function to include all properties in the `border` and `background` shorthands. Differential Revision: https://phabricator.services.mozilla.com/D235326
This commit is contained in:
@@ -891,7 +891,8 @@ impl LonghandIdSet {
|
||||
${static_longhand_id_set(
|
||||
"BORDER_BACKGROUND_PROPERTIES",
|
||||
lambda p: (p.logical_group and p.logical_group.startswith("border")) or \
|
||||
p.name in ["background-color", "background-image"]
|
||||
p in data.shorthands_by_name["border"].sub_properties or \
|
||||
p in data.shorthands_by_name["background"].sub_properties
|
||||
)}
|
||||
&BORDER_BACKGROUND_PROPERTIES
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user