[wpt-sync] Sync PR 39391 - Nested calc() expressions need to consume all their tokens
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox114 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 39391 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/39391
Details from upstream follow.
Fredrik Söderquist <fs@opera.com> wrote:
Nested calc() expressions need to consume all their tokens
When parsing a nested calc() expression that had a valid first part
(term) that was followed by an invalid operator the parsed part was
returned to the caller - which had already consumed the tokens within
the sub-expression. The caller only checked that an expression node was
returned, which meant that the sub-expression was considered valid.Require that all tokens that are part of the sub-expression have been
consumed after parsing has completed to fail the parsing in such a case.Fixed: 1430413
Change-Id: I3072e22e2a7b81296510173266814a18fb6bfc37Reviewed-on: https://chromium-review.googlesource.com/4400956
WPT-Export-Revision: 37971085c2460e202bbf49c646fd48b58d6c63f4
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
| Assignee | ||
Comment 3•3 years ago
|
||
Comment 4•3 years ago
|
||
| bugherder | ||
Description
•