Skip to content
Snippets Groups Projects
Commit 44b95131 authored by Koji Ishii's avatar Koji Ishii Committed by moz-wptsync-bot
Browse files

Bug 1791601 [wpt PR 35971] - [anchor-position] Support nested block fragmentation, a=testonly

Automatic update from web-platform-tests
[anchor-position] Support nested block fragmentation

In a nested block fragmentation context, fragmentainers of the
inner context may not have the correct block offsets. This is
intentionally omitted because it is expensive, and it is not
necessary for existing usages.

However, when anchors in the nested multicol is fragmented by
the outer multicol, anchor query needs the offsets. This patch
changes to let anchor query to search anchors from the outer
block fragmentation context in such cases.

|NGLogicalAnchorQueryForFragmentation| can find fragments and
their offsets by traversing descendants. By giving the outer
block fragmentation context to it, it can determine the
correct offsets of the inner fragmentainers.

Bug: 1309178
Change-Id: I0e98ed8b345b3fda1a08d9bb5b4e25cb7903f306
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3881852


Commit-Queue: Koji Ishii <kojii@chromium.org>
Reviewed-by: default avatarAlison Maher <almaher@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1049351}

--

wpt-commits: 42108c3d10b6982fc52fbdd678f8e1cfdf3f2bd4
wpt-pr: 35971
parent cf5eeba1
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment