Issue #2106 - Follow-up: Additional Un-prefixing

This commit is contained in:
Andy 2025-07-07 10:43:13 -07:00 committed by roytam1
commit 1a5b3dcae6
52 changed files with 152 additions and 152 deletions

View file

@ -13,6 +13,6 @@
<body onload="setTimeout(test, 0)">
<div contenteditable spellcheck="false" onfocus="focused()"
style="outline: none">foo<span contenteditable=false
style="-moz-user-select: none">bar</span>baz</div>
style="user-select: none">bar</span>baz</div>
</body>
</html>

View file

@ -23,7 +23,7 @@
}
</script>
<style>
div { -moz-user-select:none; }
div { user-select:none; }
div:focus { outline:1px solid black; }
</style>
</head>

View file

@ -19,7 +19,7 @@
}
</script>
<style>
div { -moz-user-select:none; }
div { user-select:none; }
div:focus { outline:1px solid black; }
</style>
</head>

View file

@ -1,5 +1,5 @@
<!DOCTYPE HTML>
<html class="reftest-wait" style="-moz-user-select:none" spellcheck="false">
<html class="reftest-wait" style="user-select:none" spellcheck="false">
<head>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>

View file

@ -12,7 +12,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=968148
width: 20px;
height: 20px;
border: 1px solid black;
-moz-user-select: none;
user-select: none;
}
</style>
</head>

View file

@ -13,8 +13,8 @@
}
html,body { margin:0; padding: 0; }
body,pre { font-family: Ahem; font-size: 20px; }
span { -moz-user-select:none; }
x { -moz-user-select:text; }
span { user-select:none; }
x { user-select:text; }
</style>
</head>
<body>

View file

@ -12,7 +12,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=582771
width: 20px;
height: 20px;
border: 1px solid black;
-moz-user-select: none;
user-select: none;
}
</style>
</head>

View file

@ -12,7 +12,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=603550
width: 20px;
height: 20px;
border: 1px solid black;
-moz-user-select: none;
user-select: none;
}
</style>
</head>

View file

@ -15,7 +15,7 @@ vbox, hbox {
word-spacing: normal;
letter-spacing: normal;
text-indent: 0;
-moz-user-select: text;
user-select: text;
text-shadow: none;
/* Copy of the type=file part of forms.css below this */

View file

@ -24,7 +24,7 @@ video {
margin: auto;
max-width: 100%;
max-height: 100%;
-moz-user-select: none;
user-select: none;
}
video:focus {

View file

@ -10,17 +10,17 @@
}
*|*:read-write :read-only {
-moz-user-select: all;
user-select: all;
}
*|*:read-only > :read-write {
/* override the above -moz-user-select: all rule. */
-moz-user-select: -moz-text;
user-select: -moz-text;
}
input:read-write > .anonymous-div:read-only,
textarea:read-write > .anonymous-div:read-only {
-moz-user-select: text;
user-select: text;
}
/* Use default arrow over objects with size that
@ -60,7 +60,7 @@ a:link:read-write {
*|*:read-write > input:read-only,
*|*:read-write > button:read-only,
*|*:read-write > textarea:read-only {
-moz-user-select: all;
user-select: all;
-moz-user-input: auto !important;
-moz-user-focus: none !important;
}
@ -75,7 +75,7 @@ input[contenteditable="true"]:disabled,
input[contenteditable="true"][type="checkbox"],
input[contenteditable="true"][type="radio"],
input[contenteditable="true"][type="file"] {
-moz-user-select: all;
user-select: all;
-moz-user-input: none !important;
-moz-user-focus: none !important;
}
@ -96,15 +96,15 @@ input[contenteditable="true"][type="hidden"] {
}
label:read-write {
-moz-user-select: all;
user-select: all;
}
*|*::-moz-display-comboboxcontrol-frame {
-moz-user-select: text;
user-select: text;
}
option:read-write {
-moz-user-select: text;
user-select: text;
}
/* the following rules are for Image Resizing */
@ -115,7 +115,7 @@ span[\_moz_anonclass="mozResizer"] {
position: absolute;
border: 1px black solid;
background-color: white;
-moz-user-select: none;
user-select: none;
z-index: 2147483646; /* max value -1 for this property */
}
@ -163,7 +163,7 @@ span[\_moz_anonclass="mozResizer"][anonlocation="se"] {
span[\_moz_anonclass="mozResizingShadow"],
img[\_moz_anonclass="mozResizingShadow"] {
outline: thin dashed black;
-moz-user-select: none;
user-select: none;
opacity: 0.5;
position: absolute;
z-index: 2147483647; /* max value for this property */
@ -204,7 +204,7 @@ span[\_moz_anonclass="mozGrabber"] {
background-image: url("resource://gre/res/grabber.gif");
background-repeat: no-repeat;
background-position: center center;
-moz-user-select: none;
user-select: none;
cursor: move;
}
@ -220,7 +220,7 @@ a[\_moz_anonclass="mozTableAddColumnBefore"] {
background-image: url("resource://gre/res/table-add-column-before.gif");
background-repeat: no-repeat;
background-position: center center;
-moz-user-select: none;
user-select: none;
-moz-user-focus: none !important;
}
@ -242,7 +242,7 @@ a[\_moz_anonclass="mozTableAddColumnAfter"] {
background-image: url("resource://gre/res/table-add-column-after.gif");
background-repeat: no-repeat;
background-position: center center;
-moz-user-select: none;
user-select: none;
-moz-user-focus: none !important;
}
@ -264,7 +264,7 @@ a[\_moz_anonclass="mozTableRemoveColumn"] {
background-image: url("resource://gre/res/table-remove-column.gif");
background-repeat: no-repeat;
background-position: center center;
-moz-user-select: none;
user-select: none;
-moz-user-focus: none !important;
}
@ -286,7 +286,7 @@ a[\_moz_anonclass="mozTableAddRowBefore"] {
background-image: url("resource://gre/res/table-add-row-before.gif");
background-repeat: no-repeat;
background-position: center center;
-moz-user-select: none;
user-select: none;
-moz-user-focus: none !important;
}
@ -308,7 +308,7 @@ a[\_moz_anonclass="mozTableAddRowAfter"] {
background-image: url("resource://gre/res/table-add-row-after.gif");
background-repeat: no-repeat;
background-position: center center;
-moz-user-select: none;
user-select: none;
-moz-user-focus: none !important;
}
@ -330,7 +330,7 @@ a[\_moz_anonclass="mozTableRemoveRow"] {
background-image: url("resource://gre/res/table-remove-row.gif");
background-repeat: no-repeat;
background-position: center center;
-moz-user-select: none;
user-select: none;
-moz-user-focus: none !important;
}

View file

@ -101,7 +101,7 @@ input {
cursor: text;
-moz-binding: url("chrome://global/content/platformHTMLBindings.xml#inputFields");
text-indent: 0;
-moz-user-select: text;
user-select: text;
text-shadow: none;
overflow-clip-box: content-box;
}
@ -148,7 +148,7 @@ textarea {
-moz-binding: url("chrome://global/content/platformHTMLBindings.xml#textAreas");
-moz-appearance: textfield-multiline;
text-indent: 0;
-moz-user-select: text;
user-select: text;
text-shadow: none;
white-space: pre-wrap;
word-wrap: break-word;
@ -240,7 +240,7 @@ select {
text-align: start;
cursor: default;
box-sizing: border-box;
-moz-user-select: none;
user-select: none;
-moz-appearance: menulist;
border-width: 2px;
border-style: inset;
@ -332,7 +332,7 @@ select:empty {
color: inherit;
white-space: nowrap;
text-align: inherit;
-moz-user-select: none;
user-select: none;
/* Make sure to size correctly if the combobox has a non-auto block-size. */
block-size: 100% ! important;
box-sizing: border-box ! important;
@ -345,7 +345,7 @@ option {
position: static !important;
min-block-size: 1em;
line-height: normal !important;
-moz-user-select: none;
user-select: none;
text-indent: 0;
white-space: nowrap !important;
word-wrap: normal !important;
@ -379,7 +379,7 @@ optgroup {
font-style: italic;
font-weight: bold;
font-size: inherit;
-moz-user-select: none;
user-select: none;
text-indent: 0;
white-space: nowrap !important;
word-wrap: normal !important;
@ -399,7 +399,7 @@ optgroup:before {
*|*::-moz-dropdown-list {
z-index: 2147483647;
background-color: inherit;
-moz-user-select: none;
user-select: none;
position: static !important;
float: none !important;
@ -633,7 +633,7 @@ input[type="submit"] {
background-color: ButtonFace;
cursor: default;
box-sizing: border-box;
-moz-user-select: none;
user-select: none;
-moz-binding: none;
}
@ -933,7 +933,7 @@ input[type=range] {
border: none;
-moz-binding: none; /* we don't want any of platformHTMLBindings.xml#inputFields */
/* Prevent nsFrame::HandlePress setting mouse capture to this element. */
-moz-user-select: none ! important;
user-select: none ! important;
}
input[type=range][orient=block] {
@ -986,7 +986,7 @@ input[type=range]::-moz-range-track {
inline-size: 100%;
block-size: 0.2em;
/* Prevent nsFrame::HandlePress setting mouse capture to this element. */
-moz-user-select: none ! important;
user-select: none ! important;
}
input[type=range][orient=block]::-moz-range-track {
@ -1023,7 +1023,7 @@ input[type=range]::-moz-range-progress {
width: 0.2em;
height: 0.2em;
/* Prevent nsFrame::HandlePress setting mouse capture to this element. */
-moz-user-select: none ! important;
user-select: none ! important;
}
/**
@ -1047,7 +1047,7 @@ input[type=range]::-moz-range-thumb {
border-radius: 0.5em;
background-color: #F0F0F0;
/* Prevent nsFrame::HandlePress setting mouse capture to this element. */
-moz-user-select: none ! important;
user-select: none ! important;
}
/* As a temporary workaround until bug 677302 the rule for input[type=number]

View file

@ -706,7 +706,7 @@ spacer {
}
canvas {
-moz-user-select: none;
user-select: none;
}
/* focusable content: anything w/ tabindex >=0 is focusable, but we

View file

@ -110,7 +110,7 @@
vertical-align: baseline;
font-variant-numeric: tabular-nums;
/* Prevent the element from being selected when clicking on the marker. */
-moz-user-select: none;
user-select: none;
}
/* SVG documents don't always load this file but they do have links.
@ -321,7 +321,7 @@
top: 0; left: 0;
right: 0; bottom: 0;
/* This prevents undesired interactions with the selection code. */
-moz-user-select: none;
user-select: none;
}
*|*:-moz-full-screen:not(:root)::backdrop {

View file

@ -36,7 +36,7 @@ pre[id]:before,
span[id]:before {
content: counter(line) " ";
counter-increment: line;
-moz-user-select: none;
user-select: none;
display: inline-block;
width: 5ch;
margin: 0 0 0 -5ch;

View file

@ -2237,7 +2237,7 @@ var gCSSProperties = {
other_values: [ "read-write", "write-only" ],
invalid_values: []
},
"-moz-user-select": {
"user-select": {
domProp: "MozUserSelect",
inherited: false,
type: CSS_TYPE_LONGHAND,
@ -7885,8 +7885,8 @@ if (IsCSSPropertyPrefEnabled("layout.css.prefixes.webkit")) {
domProp: "webkitUserSelect",
inherited: false,
type: CSS_TYPE_SHORTHAND_AND_LONGHAND,
alias_for: "-moz-user-select",
subproperties: [ "-moz-user-select" ],
alias_for: "user-select",
subproperties: [ "user-select" ],
};
if (SupportsMaskShorthand()) {