From 7d8e62986836c63c70a587b7ddeb737da6a1743b Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 17 Sep 2024 03:28:10 -0700 Subject: [PATCH] Fix a misparse when a calc() starts with a non-paren block. This would cause either a DCHECK or broken error recovery. Fixed: 367166498 Change-Id: I853a5041f6542ace4a5f031ec9d69b7c47b44005 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5868092 Reviewed-by: Anders Hartvoll Ruud Commit-Queue: Steinar H Gunderson Cr-Commit-Position: refs/heads/main@{#1356378} --- css/css-values/calc-invalid-parsing.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/css/css-values/calc-invalid-parsing.html b/css/css-values/calc-invalid-parsing.html index 937b8147c6fa68..0b268f102b3fcb 100644 --- a/css/css-values/calc-invalid-parsing.html +++ b/css/css-values/calc-invalid-parsing.html @@ -9,4 +9,6 @@ test_invalid_value('width', 'calc(7px * up)'); test_invalid_value('width', 'round(nearest, 1px, 1px, 1px)'); test_invalid_value('width', 'round(nearest, 1px)'); +test_invalid_value('width', 'calc([])'); +test_invalid_value('width', 'calc( [])');