Bug
1867039 [wpt PR 43389] - Check if math expression has percentages deep inside, a=testonly
Automatic update from web-platform-tests
Check if math expression has percentages deep inside
Currently, only the top level category is checked to have a percentage
dependency, check all the nodes inside the expression as well,
as it can be the case like:
NumberProducingFunction(Percentage) * Pixels.
The top level category is Length in such case and we try to resolve it
with ComputeLength, where percentages are not allowed.
Note: the added test would crash before the CL, as it would try to
GetDouble() of percentage which is not allowed in that context.
Bug:
1505817
Change-Id: Iefd13c0d190c3b8adf463ea244f81331635e14fe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/
5064155
Commit-Queue: Daniil Sakhapov <sakhapov@chromium.org>
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/main@{#
1230671}
--
wpt-commits:
2b4a8c1901d8eb3bc27cd935572bab028a0b84ab
wpt-pr: 43389