Closed Bug 1793023 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 36102 - [anchor-position] Fix anchor query scopes in multicol

Categories

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

task

Tracking

()

RESOLVED FIXED
107 Branch
Tracking Status
firefox107 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Koji Ishii <kojii@chromium.org> wrote:

[anchor-position] Fix anchor query scopes in multicol

When the containing block of querying element doesn't have
anchor queries, |CalculateOffset| should use an empty
|NGLogicalAnchorQuery|.

However, |LayoutFragmentainerDescendants| passed |nullptr|,
which means to use |container_builder_->AnchorQuery()|. In
multicol, this means to use the anchor query for the multicol
container.

This patch fixes the situation by passing an empty
|NGLogicalAnchorQuery|.

Bug: 1309178
Change-Id: Ibb64d3f7932eb677f70063cee303b2e62ca5b918
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3922615
Commit-Queue: Koji Ishii \<kojii@chromium.org>
Reviewed-by: Alison Maher \<almaher@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1052100}

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

CI Results

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

Total 1 tests and 1 subtests

Status Summary

Firefox

OK : 1
PASS: 1

Chrome

OK : 1
FAIL: 1

Safari

OK : 1
PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3ddd646596a2 [wpt PR 36102] - [anchor-position] Fix anchor query scopes in multicol, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch
You need to log in before you can comment on or make changes to this bug.