We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a705b1 commit 4872aabCopy full SHA for 4872aab
src/browser/cssom/CSSStyleDeclaration.zig
@@ -190,7 +190,7 @@ fn isNumericWithUnit(value: []const u8) bool {
190
return CSSKeywords.isValidUnit(unit);
191
}
192
193
-fn isHexColor(value: []const u8) bool {
+pub fn isHexColor(value: []const u8) bool {
194
if (value.len == 0) {
195
return false;
196
@@ -199,7 +199,7 @@ fn isHexColor(value: []const u8) bool {
199
200
201
const hex_part = value[1..];
202
- if (hex_part.len != 3 and hex_part.len != 6 and hex_part.len != 8) {
+ if (hex_part.len != 3 and hex_part.len != 4 and hex_part.len != 6 and hex_part.len != 8) {
203
204
205
0 commit comments