mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 13:22:07 +00:00
CSS fix bug with merging style rules, fix unnecessary backslash, more tests (#16628)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user