mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 10:58:56 +00:00
CSS fixes (#15806)
This commit is contained in:
@@ -186,8 +186,14 @@ pub const VendorPrefix = packed struct(u8) {
|
||||
}
|
||||
|
||||
/// Returns VendorPrefix::None if empty.
|
||||
pub fn orNone(this: VendorPrefix) VendorPrefix {
|
||||
return this.bitwiseOr(VendorPrefix{ .none = true });
|
||||
pub inline fn orNone(this: VendorPrefix) VendorPrefix {
|
||||
return this._or(VendorPrefix{ .none = true });
|
||||
}
|
||||
|
||||
/// **WARNING**: NOT THE SAME as .bitwiseOr!!
|
||||
pub inline fn _or(this: VendorPrefix, other: VendorPrefix) VendorPrefix {
|
||||
if (this.isEmpty()) return other;
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user