Closed Bug 1886640 Opened 11 months ago Closed 11 months ago

[wpt-sync] Sync PR 45235 - [anchor] Don't scope inline container anchor references.

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 45235 into mozilla-central (this bug is closed when the sync is complete).

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

Ian Kilpatrick <ikilpatrick@chromium.org> wrote:

[anchor] Don't scope inline container anchor references.

Previously we'd scope anchor references to those contained by the
inline container. However this is incorrect, and instead should allow
everything at the containing-block level.

For example:

\<div id="a" style="position: static;">
\<span style="position: relative;">
\<div id="b" style="position: absolute; anchor-name: --b">\</div>
\</span>
\<span style="position: relative;">
\<div id="c" style="position: absolute; top: anchor(--b top);">\</div>
\</span>
\</div>

In the above example the containing-block is "a". Previously "c"
couldn't anchor to "b", however upon discussion with Tab we should
allow this.

Bug: 41490536
Change-Id: I282b61be5dc22d79baeae947fa2be8215c561ff7

Reviewed-on: https://chromium-review.googlesource.com/5381759
WPT-Export-Revision: 0aadb556983c35e4ef8c228576c3b02999e8a8c6

PR 45235 applied with additional changes from upstream: 3f0f1bd7d15c02488ce6bcacd97585293af6d6a9, 7b6001a36b525fe94a64971ecc47fbb5f15b4462
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 3 tests

Status Summary

Firefox

OK : 2
FAIL: 8

Chrome

OK : 2
PASS: 6
FAIL: 2

Safari

OK : 2
FAIL: 8

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/d92b9864bb3b [wpt PR 45235] - [anchor] Don't scope inline container anchor references., a=testonly
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in before you can comment on or make changes to this bug.