1
0
Fork 0
firefox/testing/web-platform/tests/css/css-overflow/column-style-change-triggers-relayout.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

29 lines
792 B
HTML

<!DOCTYPE html>
<title>CSS Overflow Test: ::column style change triggers relayout</title>
<link rel="help" href="https://www.w3.org/TR/css-multicol-2/#column-pseudo">
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<style>
#container {
scroll-snap-type: both mandatory;
overflow: hidden;
columns: 1;
gap: 0;
column-fill: auto;
width: 100px;
height: 100px;
background: red;
}
.snapColumns::column {
scroll-snap-align: start;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div id="container">
<div style="height:100px;"></div>
<div style="height:100px; background:green;"></div>
</div>
<script>
document.body.offsetTop;
container.className = "snapColumns";
container.scrollLeft = 51;
</script>