Closed Bug 1837502 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 40459 - [anchor-position] Implement auto anchor positioning and auto fallbacks

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 40459 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/40459
Details from upstream follow.

Xiaocheng Hu <xiaochengh@chromium.org> wrote:

[anchor-position] Implement auto anchor positioning and auto fallbacks

This patch implements:

  1. Evaluation of anchor(auto) and anchor(auto-same) by converting
    auto into the corresponding physical side [1].
  2. Generation of automatic anchor fallbacks when one inset contains
    anchor(auto[-same]) and the opposite inset is auto [2]. This is
    done 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.

[1] https://drafts.csswg.org/css-anchor-position-1/#anchor-auto
[2] https://drafts.csswg.org/css-anchor-position-1/#fallback-automatic

Fixed: 1412864
Change-Id: I2931001ed255afd611343a7f40e7334cf823cd10

Reviewed-on: https://chromium-review.googlesource.com/4600528
WPT-Export-Revision: 6f000ca884b1a705852cee0701b57415f5a42e3e

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 2 tests and 8 subtests

Status Summary

Firefox

OK : 2
FAIL: 20

Chrome

OK : 2
FAIL: 20

Safari

OK : 2
FAIL: 20

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /css/css-anchor-position/anchor-position-auto-002.html [wpt.fyi]
    • .target 1: FAIL (Chrome: FAIL, Safari: FAIL)
    • .target 2: FAIL (Chrome: FAIL, Safari: FAIL)
    • .target 3: FAIL (Chrome: FAIL, Safari: FAIL)
    • .target 4: FAIL (Chrome: FAIL, Safari: FAIL)
    • .target 5: FAIL (Chrome: FAIL, Safari: FAIL)
    • .target 6: FAIL (Chrome: FAIL, Safari: FAIL)
    • .target 7: FAIL (Chrome: FAIL, Safari: FAIL)
    • .target 8: FAIL (Chrome: FAIL, Safari: FAIL)
    • .target 9: FAIL (Chrome: FAIL, Safari: FAIL)
    • .target 10: FAIL (Chrome: FAIL, Safari: FAIL)
    • .target 11: FAIL (Chrome: FAIL, Safari: FAIL)
    • .target 12: FAIL (Chrome: FAIL, Safari: FAIL)
  • /css/css-anchor-position/anchor-position-auto-003.html [wpt.fyi]
    • .target 1: FAIL (Chrome: FAIL, Safari: FAIL)
    • .target 2: FAIL (Chrome: FAIL, Safari: FAIL)
    • .target 3: FAIL (Chrome: FAIL, Safari: FAIL)
    • .target 4: FAIL (Chrome: FAIL, Safari: FAIL)
    • .target 5: FAIL (Chrome: FAIL, Safari: FAIL)
    • .target 6: FAIL (Chrome: FAIL, Safari: FAIL)
    • .target 7: FAIL (Chrome: FAIL, Safari: FAIL)
    • .target 8: FAIL (Chrome: FAIL, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1a33e9e4b457 [wpt PR 40459] - [anchor-position] Implement auto anchor fallbacks, a=testonly https://hg.mozilla.org/integration/autoland/rev/daa709c679f8 [wpt PR 40459] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
You need to log in before you can comment on or make changes to this bug.