Bug 1867039 [wpt PR 43389] - Check if math expression has percentages deep inside...
commit604d8dd70e48bb379e6462d2b58e3a515e523721
authorDaniil Sakhapov <sakhapov@chromium.org>
Sat, 2 Dec 2023 10:00:08 +0000 (2 10:00 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Tue, 12 Dec 2023 10:27:58 +0000 (12 10:27 +0000)
tree550e2cff7592eabd0bb292b94cf6aaafebf6e1e2
parentdd7754899da1ef3ebaaacfa8097f9e81b59c513d
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
testing/web-platform/tests/css/css-values/signs-abs-computed.html