From b712a4771e066195145920726a92d8c75d697f40 Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Wed, 16 Oct 2024 10:22:23 +0200 Subject: [PATCH] html: implement empty style property --- src/html/elements.zig | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/html/elements.zig b/src/html/elements.zig index dacce92e..1f581de6 100644 --- a/src/html/elements.zig +++ b/src/html/elements.zig @@ -96,6 +96,7 @@ pub const Interfaces = .{ HTMLTrackElement, HTMLUListElement, HTMLVideoElement, + CSSProperties, }; const Generated = generate.Union.compile(Interfaces); pub const Union = Generated._union; @@ -104,10 +105,18 @@ pub const Tags = Generated._enum; // Abstract class // -------------- +const CSSProperties = struct { + pub const mem_guarantied = true; +}; + pub const HTMLElement = struct { pub const Self = parser.ElementHTML; pub const prototype = *Element; pub const mem_guarantied = true; + + pub fn get_style(_: *parser.ElementHTML) CSSProperties { + return .{}; + } }; // Deprecated HTMLElements in Chrome (2023/03/15)