From dcdf9f33d552a17cd37459a2da28a361e215c14f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Fri, 17 Jun 2022 20:50:37 +0000 Subject: [PATCH] style: Fix grid shorthand parsing to not incorrectly ignore the last token in one case Differential Revision: https://phabricator.services.mozilla.com/D149666 --- components/style/properties/shorthands/position.mako.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/properties/shorthands/position.mako.rs b/components/style/properties/shorthands/position.mako.rs index 5393f879332..c715f3182ae 100644 --- a/components/style/properties/shorthands/position.mako.rs +++ b/components/style/properties/shorthands/position.mako.rs @@ -600,7 +600,7 @@ temp_rows = rows; input.expect_delim('/')?; flow = parse_auto_flow(input, false)?; - auto_cols = grid_auto_columns::parse(context, input).unwrap_or_default(); + auto_cols = input.try_parse(|i| grid_auto_columns::parse(context, i)).unwrap_or_default(); } else { flow = parse_auto_flow(input, true)?; auto_rows = input.try_parse(|i| grid_auto_rows::parse(context, i)).unwrap_or_default();