browser: improve visibility and interactivity CSS checks

Adds support for `pointer-events: none` in interactivity classification
and expands `checkVisibility` to include `visibility` and `opacity`.
Refactors CSS property lookup into a shared helper.
This commit is contained in:
Adrià Arrufat
2026-03-13 13:33:33 +09:00
parent e12f28fb70
commit 84d76cf90d
4 changed files with 84 additions and 30 deletions

View File

@@ -133,7 +133,7 @@ fn walk(self: @This(), node: *Node, xpath_buffer: *std.ArrayList(u8), parent_nam
}
if (el.is(Element.Html)) |html_el| {
if (interactive.classifyInteractivity(el, html_el, listener_targets) != null) {
if (interactive.classifyInteractivity(self.page, el, html_el, listener_targets) != null) {
is_interactive = true;
}
}