Skip to content

Commit e9d7a94

Browse files
authored
Merge pull request #784 from lightpanda-io/union_param_array_fix
Fix non-probing of union array failure
2 parents 714e5e0 + 237ddcb commit e9d7a94

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/browser/css/parser.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,7 @@ pub const Parser = struct {
605605
.after, .backdrop, .before, .cue, .first_letter => return .{ .pseudo_element = pseudo_class },
606606
.first_line, .grammar_error, .marker, .placeholder => return .{ .pseudo_element = pseudo_class },
607607
.selection, .spelling_error => return .{ .pseudo_element = pseudo_class },
608+
.modal => return .{ .pseudo_element = pseudo_class },
608609
}
609610
}
610611

src/browser/css/selector.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ pub const PseudoClass = enum {
9898
placeholder,
9999
selection,
100100
spelling_error,
101+
modal,
101102

102103
pub const Error = error{
103104
InvalidPseudoClass,
@@ -154,6 +155,7 @@ pub const PseudoClass = enum {
154155
if (std.ascii.eqlIgnoreCase(s, "placeholder")) return .placeholder;
155156
if (std.ascii.eqlIgnoreCase(s, "selection")) return .selection;
156157
if (std.ascii.eqlIgnoreCase(s, "spelling-error")) return .spelling_error;
158+
if (std.ascii.eqlIgnoreCase(s, "modal")) return .modal;
157159
return Error.InvalidPseudoClass;
158160
}
159161
};

src/runtime/js.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ pub fn Env(comptime State: type, comptime WebApis: type) type {
11581158
}
11591159

11601160
if (!js_value.isArray()) {
1161-
return error.InvalidArgument;
1161+
return .{.invalid = {}};
11621162
}
11631163

11641164
// This can get tricky.

0 commit comments

Comments
 (0)