Closed Bug 2076436 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63048 - Implement position-visibility: anchor-valid

Categories

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

task

Tracking

()

RESOLVED FIXED
159 Branch
Tracking Status
firefox159 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Mason Freed <masonf@chromium.org> wrote:

Implement position-visibility: anchor-valid

According to CSS Anchor Positioning 1, when an element references the
default anchor box (via position-area, anchor() or anchor-size()
without an anchor name, or align-self/justify-self: anchor-center) and
the default anchor box cannot be resolved, the box's visibility
property computes to force-hidden.

https://drafts.csswg.org/css-anchor-position-1/#position-visibility

This CL implements this behavior:

  • Adds runtime flag CSSPositionVisibilityAnchorValid (experimental).
  • Adds PositionVisibility::kAnchorValid and tracks default anchor
    references through CSS length resolution and style building.
  • Sets PaintLayer::SetInvisibleForPositionVisibility(kAnchorValid)
    during out-of-flow layout if the default anchor cannot be resolved.
  • Updates WPT baselines and adds test coverage for anchor-valid.

Bug: 333421963
Change-Id: I20f1e78866d7f644a42b34c58f63aa37338f6f8a
Reviewed-on: https://chromium-review.googlesource.com/8453827
WPT-Export-Revision: 90a7b75a5a34b07851b60a62ef9ef3f4e002be43

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

CI Results

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

Total 528 tests

Status Summary

Firefox

OK : 258
PASS: 41[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 13584[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 13763[Gecko-android-em-14-x86_64-debug-geckoview] 13764[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 13780[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 13783[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL: 2[GitHub] 108[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 136[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 139[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 154[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 155[Gecko-android-em-14-x86_64-debug-geckoview]

Chrome

FAIL: 2

Safari

PASS: 1
FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 159 Branch
You need to log in before you can comment on or make changes to this bug.