mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09: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:
parent
4d310562d9
commit
4354c7a1bc
4 changed files with 28 additions and 18 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue