Skip to content

Commit

Permalink
Fix a misparse when a calc() starts with a non-paren block.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Commit-Queue: Steinar H Gunderson <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1356378}
  • Loading branch information
Steinar H. Gunderson authored and chromium-wpt-export-bot committed Sep 17, 2024
1 parent 6b71c57 commit 7d8e629
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions css/css-values/calc-invalid-parsing.html
Original file line number Diff line number Diff line change
Expand Up @@ -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( [])');
</script>

0 comments on commit 7d8e629

Please sign in to comment.