Truly independent web browser
LibWeb: Allow whitespace after postfix grid spans
Andreas Kling40e5aa37d276
diff --git a/Libraries/LibWeb/Rust/src/css/parser/grid_parser.rs b/Libraries/LibWeb/Rust/src/css/parser/grid_parser.rsindex ee7d58d29b4..7ec119b5181 100644--- a/Libraries/LibWeb/Rust/src/css/parser/grid_parser.rs+++ b/Libraries/LibWeb/Rust/src/css/parser/grid_parser.rs@@ -728,13 +728,13 @@ fn parse_grid_track_placement(return None;}tokens.discard_a_token();+ tokens.discard_whitespace();// NB: span may follow the integer or name only when it is the final token, not when it// separates the two.if tokens.has_next_token() && (parsed_name.is_some() || parsed_integer.is_some()) {return None;}is_span = true;- tokens.discard_whitespace();continue;}if let Some(identifier) = tokens.next_token().ident()diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/grid-area.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/grid-area.txtindex 97e3b931d48..869a74a3486 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/grid-area.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/grid-area.txt@@ -2,12 +2,11 @@ Harness status: OKFound 7 tests-6 Pass-1 Fail+7 PassPass 'grid-area' does not support 'a'Pass 'grid-area' does not support 'a / a'Pass 'grid-area' does not support 'auto'Pass 'grid-area' does not support 'auto / auto'Pass 'grid-area' does not support '2 / 1 / 2'Pass 'grid-area' does not support 'span 3'-Fail 'grid-area' does not support '2 span / a span'\ No newline at end of file+Pass 'grid-area' does not support '2 span / a span'\ No newline at end of file