1
0
Fork 0
firefox/testing/web-platform/tests/css/css-overflow/scroll-buttons-layout-parent.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

35 lines
849 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Overflow Test: ::scroll-buttons() have correct layout parent</title>
<link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-buttons">
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<style>
#sc {
z-index: 1;
overflow: hidden;
width: 100px;
height: 100px;
background: red;
}
#sc::scroll-button(left) {
content: "";
border: none;
margin-left: -100px;
z-index: 2;
width: 50px;
height: 100px;
background: green;
}
#sc::scroll-button(right) {
content: "";
border: none;
z-index: 2;
width: 50px;
height: 100px;
background: green;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="display:flex;">
<div id="sc"></div>
</div>