mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
html: implement empty style property
This commit is contained in:
@@ -96,6 +96,7 @@ pub const Interfaces = .{
|
|||||||
HTMLTrackElement,
|
HTMLTrackElement,
|
||||||
HTMLUListElement,
|
HTMLUListElement,
|
||||||
HTMLVideoElement,
|
HTMLVideoElement,
|
||||||
|
CSSProperties,
|
||||||
};
|
};
|
||||||
const Generated = generate.Union.compile(Interfaces);
|
const Generated = generate.Union.compile(Interfaces);
|
||||||
pub const Union = Generated._union;
|
pub const Union = Generated._union;
|
||||||
@@ -104,10 +105,18 @@ pub const Tags = Generated._enum;
|
|||||||
// Abstract class
|
// Abstract class
|
||||||
// --------------
|
// --------------
|
||||||
|
|
||||||
|
const CSSProperties = struct {
|
||||||
|
pub const mem_guarantied = true;
|
||||||
|
};
|
||||||
|
|
||||||
pub const HTMLElement = struct {
|
pub const HTMLElement = struct {
|
||||||
pub const Self = parser.ElementHTML;
|
pub const Self = parser.ElementHTML;
|
||||||
pub const prototype = *Element;
|
pub const prototype = *Element;
|
||||||
pub const mem_guarantied = true;
|
pub const mem_guarantied = true;
|
||||||
|
|
||||||
|
pub fn get_style(_: *parser.ElementHTML) CSSProperties {
|
||||||
|
return .{};
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Deprecated HTMLElements in Chrome (2023/03/15)
|
// Deprecated HTMLElements in Chrome (2023/03/15)
|
||||||
|
|||||||
Reference in New Issue
Block a user