ladybird/Tests/LibWeb/Text/expected/hit_testing
Timothy Flynn a112eb4881 LibWeb: Ensure empty contenteditable boxes contain the hit test position
There are actually a couple of bugs here:

1. As of commit ebda8fcf11, editing hosts
   are now excluded from Node::is_editable. Since this special hit test
   handling is specifically for contenteditable nodes, we would not
   enter this branch for these nodes.

2. We were not checking if the contenteditable node actually contained
   the hit testing position. So if a page had multiple empty editable
   nodes, we would just return whichever was hit test first.

These bugs were exposed by 7c9b3c08fa.
This commit resulted in the text cursor hit test node being set as the
document focus node. If we returned the wrong result, we would not set
the correct node.

This was seen on discord, where clicking the message box would result in
the search box being focused.
2026-02-21 01:02:06 +00:00
..
basic.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
block-element-inside-inline-element.txt LibWeb: Improve caret positioning behavior inside fragments 2025-06-13 15:08:26 +02:00
box-outside-of-abspos-containing-block-border-rect.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
button.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
click-outside-of-box-with-hidden-overflow.txt Meta: Add DOCTYPEs to text tests that need rebaselining after 2025-03-20 11:50:49 +01:00
click-outside-of-box-with-lines-and-hidden-overflow.txt Meta: Add DOCTYPEs to text tests that need rebaselining after 2025-03-20 11:50:49 +01:00
content-editable-empty.txt LibWeb: Ensure empty contenteditable boxes contain the hit test position 2026-02-21 01:02:06 +00:00
css-transforms.txt LibWeb: Transform PaintableBox::hit_test positions 2024-11-23 22:06:32 +01:00
empty-anonymous-container-overlapping.txt LibWeb: Don't hit test anonymous containers if there are no fragments 2025-07-05 23:56:42 +01:00
float-with-inline-sibling-after.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
grapheme.txt LibWeb: Ensure hit testing is grapheme aware 2025-08-22 14:06:46 +02:00
grid.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
hit-testing-an-xml-svg-should-not-crash.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
inline-content-inside-anonymous-container.txt LibWeb: Do not hit test anonymous containers' box for inline content 2025-07-05 23:56:42 +01:00
inline-stacking-context.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
nested-inline-paintables.txt LibWeb: Change printElement() to not output unnecessary space 2025-01-25 13:16:13 +00:00
open-details-by-clicking-on-triangle.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
overflow-hidden-with-positioned-child-after-scroll.txt Tests: Add hit-testing test for overflow:hidden with viewport scroll 2026-01-15 19:50:53 +01:00
overflow-hidden-wrapped-into-css-translate.txt LibWeb: Use local coordinates for overflow clip hit testing 2026-01-21 12:57:22 +01:00
overflow-scroll.txt LibWeb: Change printElement() to not output unnecessary space 2025-01-25 13:16:13 +00:00
pointer-events-no-parent-extension.txt Meta: Add DOCTYPEs to text tests that need rebaselining after 2025-03-20 11:50:49 +01:00
pointer-events.txt LibWeb: Hit test StackingContext's children before testing visibility 2025-08-29 01:25:01 +02:00
positioned-z-index-0-and-floats.txt LibWeb: Change printElement() to not output unnecessary space 2025-01-25 13:16:13 +00:00
stacking-context-inside-scrollable-box.txt LibWeb: Change printElement() to not output unnecessary space 2025-01-25 13:16:13 +00:00
stacking-context-with-inline-content.txt LibWeb: Fix hit testing for text inside stacking context roots 2026-01-25 10:55:30 +01:00
svg-path.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
text.txt LibWeb: Improve caret positioning behavior inside fragments 2025-06-13 15:08:26 +02:00
visibility-visible-inside-hidden-stacking-context.txt LibWeb: Allow hit testing visible children of hidden stacking contexts 2026-01-25 10:55:30 +01:00
visibility-visible-inside-hidden.txt LibWeb: Allow hit testing visible children of hidden elements 2026-01-25 10:55:30 +01:00
visibility.txt LibWeb: Prevent hidden PaintableWithLines being hit tested 2025-09-08 15:36:27 +02:00