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:
movabs
2025-01-24 15:19:07 +00:00
parent e9c91b99ec
commit 6ef5538bf1
11 changed files with 2 additions and 21 deletions

View File

@@ -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
}