mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 06:23:45 +00:00
ignore empty pseudo_element in getComputedStyle
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user