gecko-dev/testing/web-platform/tests/css/css-overflow/scroll-buttons-dynamic-create-remove.html
Daniil Sakhapov 54835f544c Bug 1937577 [wpt PR 49707] - [carousel] Move ::scroll-button() tests to external WPT, a=testonly
Automatic update from web-platform-tests
[carousel] Move ::scroll-button() tests to external WPT

As the spec for ::scroll-button()s is mature enough and passed a few
reviews, not making them .tentative.

Spec: https://drafts.csswg.org/css-overflow-5/#scroll-buttons
Bug: 370067113
Change-Id: I6ccd167a5d2b3df35455d0f0544cb6486a1da4a3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6098131
Commit-Queue: Daniil Sakhapov <sakhapov@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1396776}

--

wpt-commits: 6cb6ef34e9294bb1dfc7eb07ff1123011542a687
wpt-pr: 49707
2024-12-18 13:21:05 +00: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>