Open Bug 1973021 Opened 10 hours ago Updated 4 hours ago

[wpt-sync] Sync PR 53273 - [anchor] Observe transforms applied to anchors (and containers).

Categories

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

task

Tracking

()

People

(Reporter: wpt-sync, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Morten Stenshorne <mstensho@chromium.org> wrote:

[anchor] Observe transforms applied to anchors (and containers).

When an anchor is transformed, or inside a transform, resolve anchor()
and anchor-size() functions (and position-area) with those transforms
applied, and use the resulting bounding box. For now, only do this for
the default anchor. It should actually be safe to do it for any anchor,
but this needs to be discussed first. The bounding box used here will
only change when the anchor, or something in its ancestry, is laid out
again. In other words, anchor positioned elements will not be affected
if a transform is changed after layout (unless a relevant element is
also laid out again).

Behind a runtime flag CSSAnchorWithTransforms, enabled for
"experimental".

Bug: 382294252, 40272849
Change-Id: Iad8bb7fb9a23decc45b71e60124e48a28ebfbae6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6651610
Commit-Queue: Morten Stenshorne \<mstensho@chromium.org>
Reviewed-by: Anders Hartvoll Ruud \<andruud@chromium.org>
Reviewed-by: Koji Ishii \<kojii@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1476081}

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

CI Results

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

Total 6 tests

Status Summary

Firefox

FAIL: 6

Chrome

PASS: 1
FAIL: 5

Safari

PASS: 1
FAIL: 5

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

New Tests That Don't Pass

You need to log in before you can comment on or make changes to this bug.