Lightpanda: the headless browser designed for AI and automation
zig fmt -_-
Karl Seguin66ac8d33e3f9
diff --git a/src/browser/StyleManager.zig b/src/browser/StyleManager.zigindex b5aff600d..5e7d2548e 100644--- a/src/browser/StyleManager.zig+++ b/src/browser/StyleManager.zig@@ -690,7 +690,7 @@ fn isElementHidden(self: *StyleManager, el: *Element, options: CheckVisibilityOp// Check inline styles FIRST - they use INLINE_PRIORITY so no stylesheet can beat themif (options.check_display) {- if (inlineValue(el, comptime .wrap("display"), access, self.frame)) |value| {+ if (inlineValue(el, comptime .wrap("display"), access, self.frame)) |value| {if (std.ascii.eqlIgnoreCase(value, "none")) {return true; // Early exit for hiding value}@@ -703,7 +703,7 @@ fn isElementHidden(self: *StyleManager, el: *Element, options: CheckVisibilityOp}if (options.check_visibility) {- if (inlineValue(el, comptime .wrap("visibility"), access, self.frame)) |value| {+ if (inlineValue(el, comptime .wrap("visibility"), access, self.frame)) |value| {if (std.ascii.eqlIgnoreCase(value, "hidden") or std.ascii.eqlIgnoreCase(value, "collapse")) {return true;}@@ -718,7 +718,7 @@ fn isElementHidden(self: *StyleManager, el: *Element, options: CheckVisibilityOp}if (options.check_opacity) {- if (inlineValue(el, comptime .wrap("opacity"), access, self.frame)) |value| {+ if (inlineValue(el, comptime .wrap("opacity"), access, self.frame)) |value| {if (std.ascii.eqlIgnoreCase(value, "0")) {return true;}