fune/testing/web-platform/tests/css/css-break/out-of-flow-with-negative-offset-crash.html
Alison Maher efcb9c7bcf Bug 1766061 [wpt PR 33758] - [LayoutNG] Column break token replacement with spanners, a=testonly
Automatic update from web-platform-tests
[LayoutNG] Column break token replacement with spanners

In CL:2692357, we added logic to replace the column break token
in its parent's list of child break tokens (if it had been updated
as a result of OOF fragmentation). However, if there
was a spanner, and the spanner had a break token,
|current_column_index| would stay set to 0, and we would end up
thinking the first column was the last column in the parent's
list of children. We would then replace the second column's
break token with the updated break token of the first column.

To fix this, set current_column_index to kNotFound by default,
and only look at the child break tokens if current_column_index
has been set to something else.

Bug: 1314916
Change-Id: I05b3790f90e3f34d4015c57ac7bfca367778ffa9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3603262
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Commit-Queue: Alison Maher <almaher@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#995753}

--

wpt-commits: a0fca261fd54eda559ee3f352947496c70449881
wpt-pr: 33758
2022-05-15 20:20:51 +00:00

13 lines
523 B
HTML

<!DOCTYPE html>
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1314916">
<div style="columns:2; column-fill:auto; height:15px;">
<div style="columns:2; column-fill:auto;">
<div style="height:20px;"></div>
<div style="position:relative;">
<div style="height:20px;"></div>
<div style="column-span:all; columns:1; padding-top:30px;"></div>
<div style="height:20px;"></div>
<div style="position:absolute; top:-10px; height:5px;"></div>
</div>
</div>
</div>