Issue #2030 - Pref-gate default button event dispatch logic

This commit is contained in:
Martok 2022-11-27 16:35:46 +01:00 • committed by roytam1
commit 3f073056de
2 changed files with 13 additions and 0 deletions

View file

@ -699,6 +699,16 @@ button {
justify-items: inherit;
}
@supports -moz-bool-pref("dom.forms.button.standards_compliant") {
/*
* Button content does historically not receive pointer events.
* This pref is enabled by default and can disabled to get Webkit behavior.
*/
button * {
pointer-events: none !important;
}
}
button:hover,
input[type="color"]:-moz-system-metric(color-picker-available):hover,
input[type="reset"]:hover,