Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-overflow/scroll-buttons-container-query-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Overflow Test: ::scroll-button() depending on size container query crash</title>
<style>
#scroller {
overflow: hidden;
container-type: size;
}
#scroller::scroll-button(right) {
content: ">";
}
@container (width) {
#scroller::scroll-button(right) {
display: block;
}
}
</style>
<div id="scroller"></div>