Files
sousa-gecko/testing/web-platform/tests/css/css-multicol/offsetProps-002.html
T
Morten Stenshorne e858881ab1 Bug 1980122 [wpt PR 54046] - ForAllBoxFragmentDescendants() to visit children of inlines., a=testonly
Automatic update from web-platform-tests
ForAllBoxFragmentDescendants() to visit children of inlines.

Non-atomic inlines may have block children, and
ForAllBoxFragmentDescendants() failed to visit them, because we just did
MoveToNextSkippingChildren() on the inline cursor. Check the result from
the PhysicalFragmentTraversalListener instead.

Also mark non-atomic PhysicalBoxFragment inlines as fragmentable (i.e.
non-monolithic) if inside a block fragmentation context. This seems more
reasonable, and helps TraversalListener::HandleEntry() in
layout_box_utils.cc behave correctly (cannot just kSkipChildren for
those).

Bug: 434678447
Change-Id: I0abde42da94458efae57b91274bafbc0f8fe624e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6797847
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1494027}

--

wpt-commits: 2b784738550e0acc37b48e638b2e14e38df78505
wpt-pr: 54046
2025-08-06 15:18:53 +00:00

21 lines
780 B
HTML

<!DOCTYPE html>
<title>offsetTop inside relpos block in inline in multicol</title>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://issues.chromium.org/issues/434678447">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div style="columns:1; margin-top:100px;">
<div style="height:100px;"></div>
<div style="display:inline;">
<div id="expectedOffsetParent" style="position:relative; border:solid;">
<div id="target" style="margin-top:10px; height:20px;"></div>
</div>
</div>
</div>
<script>
test(() => {
assert_equals(target.offsetParent, expectedOffsetParent);
assert_equals(target.offsetTop, 10);
}, "offsetTop");
</script>