1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 23:18:26 +00:00

Issue #2030 - Allow child nodes of button to participate in mouse hit tests

This is needed for web compatibility, even if standards compliance is debatable.
This commit is contained in:
Martok
2022-11-27 16:35:38 +01:00
committed by roytam1
parent 4d310562d9
commit 4354c7a1bc
4 changed files with 28 additions and 18 deletions
+2 -2
View File
@@ -118,8 +118,8 @@ nsHTMLButtonControlFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
nsDisplayListCollection set(aBuilder);
// Do not allow the child subtree to receive events.
if (!isForEventDelivery) {
// HTMLInputElement buttons are opaque to hit tests, HTMLButtonElement buttons are not.
if (!(isForEventDelivery && this->IsInput())) {
DisplayListClipState::AutoSaveRestore clipState(aBuilder);
if (ShouldClipPaintingToBorderBox()) {