From 5edf942b7078fe20ac3b7f09802e1e1badfd3c2b Mon Sep 17 00:00:00 2001 From: Xiaocheng Hu Date: Thu, 13 Apr 2023 04:34:05 +0000 Subject: [PATCH] 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 Reviewed-by: Koji Ishii Cr-Commit-Position: refs/heads/main@{#1127332} -- wpt-commits: e5d08dfdc81c07e54c0904996e972ccde18539ac wpt-pr: 39133 --- .../anchor-getComputedStyle.html | 124 +++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 testing/web-platform/tests/css/css-anchor-position/anchor-getComputedStyle.html diff --git a/testing/web-platform/tests/css/css-anchor-position/anchor-getComputedStyle.html b/testing/web-platform/tests/css/css-anchor-position/anchor-getComputedStyle.html new file mode 100644 index 000000000000..cce571c4d0d3 --- /dev/null +++ b/testing/web-platform/tests/css/css-anchor-position/anchor-getComputedStyle.html @@ -0,0 +1,124 @@ + + +Tests that getComputedStyle() resolves anchor functions + + + + + + + +
+
+
+
+
+ + +
+
+
+
+
+ + +
+
+
+
+
+ + -- 2.11.4.GIT