Bug 1837502 [wpt PR 40459] - [anchor-position] Implement auto anchor fallbacks, a...
commit9901d212bca4c935b64ad3d1289e4893a9ccdb5e
authorXiaocheng Hu <xiaochengh@chromium.org>
Mon, 19 Jun 2023 20:05:54 +0000 (19 20:05 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Wed, 21 Jun 2023 14:34:47 +0000 (21 14:34 +0000)
treec54148120a970638acc2d8917cc7a2a901b7b567
parent1d094f99370036081cfccfd799dd059e5e6f3c81
Bug 1837502 [wpt PR 40459] - [anchor-position] Implement auto anchor fallbacks, a=testonly

Automatic update from web-platform-tests
[anchor-position] Implement auto anchor fallbacks

This patch implements auto anchor fallbacks by introducing an
`OOFCandidateStyleIterator` class that encapsulates the iteration of
all candidate styles for an OOF, including the base style, `@try`
fallback styles and automatic fallback styles. This class also
replaces the existing position fallback style enumeration.

The existing selectmenu UA stylesheet is also simplified using
auto anchor fallbacks.

Spec: https://drafts.csswg.org/css-anchor-position-1/#fallback-automatic

Fixed: 1412864
Change-Id: I2931001ed255afd611343a7f40e7334cf823cd10
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4600528
Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1157079}

--

wpt-commits: c2363480357cc2fd52ca4d90d20b3d9af29767fd
wpt-pr: 40459
testing/web-platform/tests/css/css-anchor-position/anchor-position-auto-002.html [new file with mode: 0644]
testing/web-platform/tests/css/css-anchor-position/anchor-position-auto-003.html [new file with mode: 0644]