Bug 1882197 [wpt PR 44800] - In a few cases, check whether calc() values have percent...
commitd16a1b194404cf54ad78ec3af3c7b7c6fc6c3a02
authorL. David Baron <dbaron@chromium.org>
Sat, 2 Mar 2024 22:39:42 +0000 (2 22:39 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Mon, 4 Mar 2024 09:26:34 +0000 (4 09:26 +0000)
tree683dff90e78230f786d585e3b38c7c0fed53bc9a
parent601138a69cc67280f17fc1dff909c7ba566ca209
Bug 1882197 [wpt PR 44800] - In a few cases, check whether calc() values have percents rather than assuming they do., a=testonly

Automatic update from web-platform-tests
In a few cases, check whether calc() values have percents rather than assuming they do.

This starts the path of treating calc() values that don't have percent
values within them (but instead have intrinsic sizes in them) as not
having percents.

This gets height: calc-size() working in a few useful cases.

This adds tests for height animation.  Of the four sets of tests, only
the second set currently passes.  The last two sets require further work
on correctly propagating whether a value has percentages through
animations.  The first set requires implementing support for 'auto'
values in 'calc-size()'.

This also adds tests for static values of height.  These all pass except
for the tests that depend on percentages resolving to zero in the cases
where the value was not treated as being a percentage value.

Bug: 313072
Change-Id: Iecf12450ac7df0c7c347a50f0f3664ae388cbfae
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5316787
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Commit-Queue: David Baron <dbaron@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1266054}

--

wpt-commits: ac566fe54a10c30567c9427e68ddf348c5460a3a
wpt-pr: 44800
testing/web-platform/tests/css/css-values/calc-size/animation/calc-size-height-interpolation.tentative.html [new file with mode: 0644]
testing/web-platform/tests/css/css-values/calc-size/animation/calc-size-width-interpolation.tentative.html
testing/web-platform/tests/css/css-values/calc-size/calc-size-height.tentative.html [new file with mode: 0644]
testing/web-platform/tests/css/css-values/calc-size/calc-size-parsing.tentative.html
testing/web-platform/tests/css/css-values/calc-size/calc-size-width.tentative.html