Closed Bug 1889707 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 45550 - [css-anchor-position] Support CSS visibility for anchors-visible

Categories

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

task

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Philip Rogers <pdr@chromium.org> wrote:

[css-anchor-position] Support CSS visibility for anchors-visible

We previously supported position-visibility: anchors-visible only for
the "intersection visibility" of the anchor element. This patch extends
anchors-visible to also be based on the CSS visibility of the anchor
element.

Implementation notes:

  • CSS visibility of anchor elements can change without notifying the
    anchored element. To catch these style changes, we loop over all used
    anchor elements every lifecycle update with
    LocalFrame::CheckPositionAnchorsForCssVisibilityChanges.
  • LayerPositionVisibility has been introduced to support the two aspects
    of anchors-visible visibility. These can be tracked independently.

Spec:
https://github.com/w3c/csswg-drafts/issues/7758#issuecomment-1965540529

Bug: 332663437
Change-Id: Id043217fb33308c7af35a3d9fbe103a5c552a34a
Reviewed-on: https://chromium-review.googlesource.com/5425736
WPT-Export-Revision: 4adb8f33807ee45c2a74c7e833dc955b483d3f54

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

CI Results

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

Total 2 tests

Status Summary

Firefox

FAIL: 2

Chrome

PASS: 1
FAIL: 1

Safari

FAIL: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a9d1adfc46ef [wpt PR 45550] - [css-anchor-position] Support CSS visibility for anchors-visible, a=testonly https://hg.mozilla.org/integration/autoland/rev/2dec489295ff [wpt PR 45550] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in before you can comment on or make changes to this bug.