ignore empty pseudo_element in getComputedStyle

This commit is contained in:
Karl Seguin
2026-01-02 16:47:04 +08:00
parent 11ff9ed366
commit 562e8e8d87

View File

@@ -301,8 +301,10 @@ pub fn matchMedia(_: *const Window, query: []const u8, page: *Page) !*MediaQuery
pub fn getComputedStyle(_: *const Window, element: *Element, pseudo_element: ?[]const u8, page: *Page) !*CSSStyleProperties {
if (pseudo_element) |pe| {
if (pe.len != 0) {
log.warn(.not_implemented, "window.GetComputedStyle", .{ .pseudo_element = pe });
}
}
return CSSStyleProperties.init(element, true, page);
}