Bug 1625604 - Move pointer-events: none declaration for option to forms.css. r=snorp

This is a bit hacky, but is how it used tow work without the native theme. We
may be able to do better.

<input type="date"> / <input type="time"> work the same way with and without the
other two selectors, because they never match since we moved them to shadow DOM
in Firefox 65 (bug 1496242).

Differential Revision: https://phabricator.services.mozilla.com/D69552

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Emilio Cobos Álvarez 2020-04-03 14:20:27 +00:00
parent df699673b7
commit 0caf890907
2 changed files with 8 additions and 7 deletions

View File

@ -405,6 +405,14 @@ optgroup:before {
content: attr(label);
}
%ifdef ANDROID
/* These elements are handled by the prompt module. */
select option,
select optgroup {
pointer-events: none;
}
%endif
*|*::-moz-dropdown-list {
z-index: 2147483647;
background-color: inherit;

View File

@ -32,13 +32,6 @@ textarea,
background-color: white;
}
/* These elements are handled by the prompt module. */
select option, select optgroup,
input[type="date"] div:-moz-native-anonymous.datetime-input-box-wrapper,
input[type="time"] div:-moz-native-anonymous.datetime-input-box-wrapper {
pointer-events: none;
}
select:not([size]):not([multiple]),
select[size="0"],
select[size="1"],