mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-31 01:28:55 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user