github web-platform-tests/wpt merge_pr_48564

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
4 months ago

[line-clamp] Hide from paint non-fixed-height abspos after clamp

With the continue: collapse variant of line-clamp, absolutely
positioned boxes that are after the clamp point in the layout tree
should be hidden from paint. However, abspos with an indefinite block
size were not always being hidden.

The reason for this was that for such abspos,
OutOfFlowLayoutPart::CalculateOffset performs an initial layout,
which can end up becoming the final layout of the abspos, which does
not happen for the fixed-height abspos that we had tested previously.
As it turns out, that layout was not checking the NodeInfo's
is_hidden_for_paint field to determine whether to hide the fragment.
This change fixes that.

Bug: 40336192
Change-Id: I5876c762d0d9957ea5785660c73528b83de99eb9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5923076
Reviewed-by: Ian Kilpatrick ikilpatrick@chromium.org
Commit-Queue: Andreu Botella abotella@igalia.com
Cr-Commit-Position: refs/heads/main@{#1367195}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.