Bug 1871745 - Hide -moz-user-focus from content. r=smaug

-moz-user-focus: none didn't do anything useful for non-XUL until
bug 1868552. It seems nonetheless some sites specify it, which can cause
compat issues.

Let's hide this property from content, to avoid breaking those sites.

Differential Revision: https://phabricator.services.mozilla.com/D197253
This commit is contained in:
Emilio Cobos Álvarez 2023-12-28 17:45:49 +00:00
parent 64ae07c26f
commit 61474d6767
5 changed files with 3 additions and 11 deletions

View File

@ -44,9 +44,6 @@ const testcases = [
{
property: "-moz-text-size-adjust"
},
{
property: "-moz-user-focus"
},
{
property: "-moz-user-input"
},

View File

@ -103,6 +103,7 @@ const char* gInaccessibleProperties[] = {
"-moz-min-font-size-ratio", // parsed by UA sheets only
"-moz-box-collapse", // chrome-only internal properties
"-moz-subtree-hidden-only-visually", // chrome-only internal properties
"-moz-user-focus", // chrome-only internal properties
"-moz-window-input-region-margin", // chrome-only internal properties
"-moz-window-opacity", // chrome-only internal properties
"-moz-window-transform", // chrome-only internal properties

View File

@ -3905,14 +3905,6 @@ var gCSSProperties = {
other_values: ["preserve-3d"],
invalid_values: [],
},
"-moz-user-focus": {
domProp: "MozUserFocus",
inherited: true,
type: CSS_TYPE_LONGHAND,
initial_values: ["normal"],
other_values: ["none", "ignore"],
invalid_values: [],
},
"-moz-user-input": {
domProp: "MozUserInput",
inherited: true,

View File

@ -23,6 +23,7 @@ const NON_CONTENT_ACCESSIBLE_PROPERTIES = [
"-moz-inert",
"-moz-control-character-visibility",
"-moz-context-properties",
"-moz-user-focus",
];
function testInWin(win) {

View File

@ -74,6 +74,7 @@ ${helpers.single_keyword(
gecko_enum_prefix="StyleUserFocus",
animation_value_type="discrete",
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-user-focus)",
enabled_in="chrome",
affects="",
)}