Skip to content

Commit f95defe

Browse files
committed
Do not getComputedStyle
1 parent 226dafa commit f95defe

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/browser/html/window.zig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,15 @@ pub const Window = struct {
232232
gop.value_ptr.* = callback;
233233
return timer_id;
234234
}
235+
236+
// NOT IMPLEMENTED - This is a dummy implementation that always returns null to deter PlayWright from using this path to solve click.js.
237+
// 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.
238+
pub fn _getComputedStyle(_: *Window, element: *parser.Element, pseudo_element: ?[]const u8) !?void {
239+
_ = element;
240+
_ = pseudo_element;
241+
log.warn("Not implemented function getComputedStyle called, null returned", .{});
242+
return null;
243+
}
235244
};
236245

237246
const TimerCallback = struct {

0 commit comments

Comments
 (0)