Response constructor, window.CSS

This commit is contained in:
Karl Seguin
2025-11-27 15:12:54 +08:00
parent 8775564e04
commit 0d57356c11
12 changed files with 244 additions and 15 deletions

View File

@@ -59,7 +59,7 @@ pub fn Builder(comptime T: type) type {
pub fn property(value: anytype) Property {
switch (@typeInfo(@TypeOf(value))) {
.comptime_int, .int => return .{.int = value},
.comptime_int, .int => return .{ .int = value },
else => {},
}
@compileError("Property for " ++ @typeName(@TypeOf(value)) ++ " hasn't been defined yet");
@@ -485,6 +485,7 @@ pub const JsApis = flattenTypes(&.{
@import("../webapi/collections.zig"),
@import("../webapi/Console.zig"),
@import("../webapi/Crypto.zig"),
@import("../webapi/CSS.zig"),
@import("../webapi/css/CSSRule.zig"),
@import("../webapi/css/CSSRuleList.zig"),
@import("../webapi/css/CSSStyleDeclaration.zig"),