From f95defe82febc2b697f0d44e9aa0bdb0a95670be Mon Sep 17 00:00:00 2001 From: sjorsdonkers <72333389+sjorsdonkers@users.noreply.github.com> Date: Mon, 19 May 2025 17:18:53 +0200 Subject: [PATCH] Do not getComputedStyle --- src/browser/html/window.zig | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/browser/html/window.zig b/src/browser/html/window.zig index 53ce30f4..10caf60e 100644 --- a/src/browser/html/window.zig +++ b/src/browser/html/window.zig @@ -232,6 +232,15 @@ pub const Window = struct { gop.value_ptr.* = callback; return timer_id; } + + // NOT IMPLEMENTED - This is a dummy implementation that always returns null to deter PlayWright from using this path to solve click.js. + // returns an object containing the values of all CSS properties of an element, after applying active stylesheets and resolving any basic computation those values may contain. + pub fn _getComputedStyle(_: *Window, element: *parser.Element, pseudo_element: ?[]const u8) !?void { + _ = element; + _ = pseudo_element; + log.warn("Not implemented function getComputedStyle called, null returned", .{}); + return null; + } }; const TimerCallback = struct {