Skip to content

Truly independent web browser

648 B
Raw Blame
<!DOCTYPE html>
<link rel="match" href="../expected/scrollable-pseudo-element-ref.html" />
<style>
/* Wrapper clips the scrollbar area */
.wrapper {
    width: 85px;
    height: 60px;
    overflow: hidden;
}

.container::before {
    display: block;
    content: "Line 1\A Line 2\A Line 3\A Line 4\A Line 5\A Line 6\A Line 7\A Line 8";
    white-space: pre-wrap;
    width: 100px;
    height: 60px;
    overflow: scroll;
    background: lightblue;
}
</style>
<div class="wrapper">
    <div class="container"></div>
</div>
<script>
    // Scroll the pseudo-element by 40px (approximately 2 lines)
    internals.wheel(50, 30, 0, 40, true);
</script>