Files
sousa-gecko/testing/web-platform/tests/css/css-display/display-flow-root-dynamic.html
T
5830400c9f Bug 2019687 [wpt PR 58075] - layout: Remove box damage for parent when we can reuse the box, a=testonly
Automatic update from web-platform-tests
layout: Remove box damage for parent when we can reuse the box

This fixes an oversight from #42783: when detecting that a box can be
reused, we weren't clearing the box damage propagated to ancestors, so
ancestors were still recollecting children.

Co-authored-by: Luke Warlow <lwarlow@igalia.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
Signed-off-by: Oriol Brufau <obrufau@igalia.com>

--

wpt-commits: 5c3a694620e1fb21a01f2c572a096a08b52cdc18
wpt-pr: 58075
2026-03-04 09:08:37 +00:00

23 lines
829 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<title>CSS Test: dynamically changing the outer display type while keeping a flow-root inner display type</title>
<link rel="author" title="Oriol Brufau" href="obrufau@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-display-3/#outer-role">
<link rel="help" href="https://drafts.csswg.org/css-display-3/#valdef-display-flow-root">
<link rel="match" href="display-flow-root-dynamic-ref.html">
<meta name="assert" content="The text 'A B C' should appear on a single line.">
A
<div id="target" style="display: block flow-root">B</div>
C
<script src="/common/reftest-wait.js"></script>
<script src="/common/rendering-utils.js"></script>
<script>
waitForAtLeastOneFrame().then(() => {
target.style.display = "inline flow-root";
takeScreenshot();
});
</script>
</html>