From d48a6619a3202f70c61726adf6ad230b58be22a4 Mon Sep 17 00:00:00 2001 From: Halil Durak Date: Wed, 12 Nov 2025 19:00:33 +0300 Subject: [PATCH] fix failing `isHexColor` test --- src/browser/cssom/CSSStyleDeclaration.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/cssom/CSSStyleDeclaration.zig b/src/browser/cssom/CSSStyleDeclaration.zig index 2bd8b7d1..be0dd34d 100644 --- a/src/browser/cssom/CSSStyleDeclaration.zig +++ b/src/browser/cssom/CSSStyleDeclaration.zig @@ -551,6 +551,7 @@ test "Browser: CSS.StyleDeclaration: isNumericWithUnit - edge cases and invalid test "Browser: CSS.StyleDeclaration: isHexColor - valid hex colors" { try testing.expect(isHexColor("#000")); + try testing.expect(isHexColor("#0000")); try testing.expect(isHexColor("#fff")); try testing.expect(isHexColor("#123456")); try testing.expect(isHexColor("#abcdef")); @@ -563,7 +564,6 @@ test "Browser: CSS.StyleDeclaration: isHexColor - invalid hex colors" { try testing.expect(!isHexColor("#")); try testing.expect(!isHexColor("000")); try testing.expect(!isHexColor("#00")); - try testing.expect(!isHexColor("#0000")); try testing.expect(!isHexColor("#00000")); try testing.expect(!isHexColor("#0000000")); try testing.expect(!isHexColor("#000000000"));