Bug 1823833 [wpt PR 39133] - [anchor-position] Resolve anchor functions in getCompute...
commit5edf942b7078fe20ac3b7f09802e1e1badfd3c2b
authorXiaocheng Hu <xiaochengh@chromium.org>
Thu, 13 Apr 2023 04:34:05 +0000 (13 04:34 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 14 Apr 2023 11:16:10 +0000 (14 11:16 +0000)
tree3cf7219a1eec1e747aae76b8044b34bd3313e201
parent3ef51a56a0092a1d4bd89e8bb104afd146b0fefb
Bug 1823833 [wpt PR 39133] - [anchor-position] Resolve anchor functions in getComputedStyle(), a=testonly

Automatic update from web-platform-tests
[anchor-position] Resolve anchor functions in getComputedStyle()

Currently, when getComputedStyle() returns values for `left` etc,
it needs to re-resolve them (after layout) into a pixel value.

This patch provides an NGAnchorEvaluatorImpl for the resolution, so
that anchor functions can also be resolved.

There are also a few cases that are unsolved and left for future.
They are marked with TODOs.

Bug: 1423493
Change-Id: I319543230008e61a8363fdebb111a9840adc6e5d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4330385
Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1127332}

--

wpt-commits: e5d08dfdc81c07e54c0904996e972ccde18539ac
wpt-pr: 39133
testing/web-platform/tests/css/css-anchor-position/anchor-getComputedStyle.html [new file with mode: 0644]