CSS fix bug with merging style rules, fix unnecessary backslash, more tests (#16628)

This commit is contained in:
Zack Radisic
2025-01-22 19:17:42 -08:00
committed by GitHub
parent ba2bd5cff4
commit 70ed282773
7 changed files with 1697 additions and 422 deletions

View File

@@ -170,6 +170,7 @@ pub const VendorPrefix = packed struct(u8) {
pub const NONE = VendorPrefix{ .none = true };
pub const WEBKIT = VendorPrefix{ .webkit = true };
pub const MOZ = VendorPrefix{ .moz = true };
pub const MS = VendorPrefix{ .ms = true };
pub const O = VendorPrefix{ .o = true };
/// Fields listed here so we can iterate them in the order we want
@@ -881,6 +882,8 @@ pub fn DefineEnumProperty(comptime T: type) type {
// @panic("TODO renable this");
}
pub fn deinit(_: *T, _: std.mem.Allocator) void {}
pub fn toCss(this: *const T, comptime W: type, dest: *Printer(W)) PrintErr!void {
return dest.writeStr(asStr(this));
}
@@ -4901,7 +4904,7 @@ const Tokenizer = struct {
}
}
// else: escaped EOF, do nothing.
// continue;
continue;
},
0 => {
this.advance(1);