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

32 lines
730 B
HTML

<!doctype html>
<title>CSS Overflow Test: ::scroll-button() can be created and removed dynamicaly</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>
#carousel {
overflow: hidden;
width: 100px;
height: 100px;
}
#carousel div {
background: green;
width: 100px;
height: 100px;
}
.scroll-buttons::scroll-button(right) {
content: "r";
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div id="carousel">
<div></div>
<div>
<script>
carousel.offsetTop;
carousel.className = "scroll-buttons";
carousel.offsetTop;
carousel.className = "";
</script>