Bug 1881020 [wpt PR 44674] - [anchor] Anchor queries on non-OOF must use fallback...
commit94974f074c58fc6c628068735d00cf3ca4161a7d
authorAnders Hartvoll Ruud <andruud@chromium.org>
Fri, 23 Feb 2024 04:18:44 +0000 (23 04:18 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Tue, 27 Feb 2024 08:15:07 +0000 (27 08:15 +0000)
tree3ddb871e5b912af6be15f2d84c49de8f5f12bb90
parent65d3ab330f17be0c966135511ce2229a1519ad0f
Bug 1881020 [wpt PR 44674] - [anchor] Anchor queries on non-OOF must use fallback, a=testonly

Automatic update from web-platform-tests
[anchor] Anchor queries on non-OOF must use fallback

For non-OOF elements, we currently implement a used-value time
conversion of any length with anchor queries: the inset and sizing
properties become their initial value whenever we have an anchor
query.

The spec is (now) very clear on how this should work: we should always
just use the fallback value of the query. Note that all anchor queries
have a fallback value: it set to 0px if not provided by the author.

Fixed: 325990051
Change-Id: If3f38b45c8235237dbf6c62b366ef184e267d82f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5307086
Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1262701}

--

wpt-commits: 9b1f75c7e92d14a5eea5b93672245c1f050283cf
wpt-pr: 44674
testing/web-platform/tests/css/css-anchor-position/reference/sticky-anchor-position-invalid-ref.html
testing/web-platform/tests/css/css-anchor-position/sticky-anchor-position-invalid.html