ladybird/Base/res/html/misc/overflow.html
Sam Atkins e6c0cb5a7f LibWeb: Implement and use OverflowStyleValue
Also added a test page for the `overflow` properties. They apparently
don't work, but at least they do parse.
2021-08-14 12:45:01 +02:00

180 lines
5.6 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>CSS Overflow Test</title>
<style>
.box {
width: 150px;
height: 150px;
border: 1px solid red;
}
.box h1 {
width: 2000px;
}
.box p {
width: 2000px;
}
</style>
</head>
<body>
<h1>Single-value 'overflow' property</h1>
<h2>Overflow: inherit</h2>
<div class="box" style="overflow: inherit;">
<h1>Heading extends outside the box!</h1>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
</div>
<h2>Overflow: initial</h2>
<div class="box" style="overflow: initial;">
<h1>Heading extends outside the box!</h1>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
</div>
<h2>Overflow: auto</h2>
<div class="box" style="overflow: auto;">
<h1>Heading extends outside the box!</h1>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
</div>
<h2>Overflow: clip</h2>
<div class="box" style="overflow: clip;">
<h1>Heading extends outside the box!</h1>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
</div>
<h2>Overflow: hidden</h2>
<div class="box" style="overflow: hidden;">
<h1>Heading extends outside the box!</h1>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
</div>
<h2>Overflow: scroll</h2>
<div class="box" style="overflow: scroll;">
<h1>Heading extends outside the box!</h1>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
</div>
<h2>Overflow: visible</h2>
<div class="box" style="overflow: visible;">
<h1>Heading extends outside the box!</h1>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
</div>
<h1>Two-value 'overflow' property</h1>
<h2>Overflow: auto hidden</h2>
<div class="box" style="overflow: auto hidden;">
<h1>Heading extends outside the box!</h1>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
</div>
<h2>Overflow: hidden auto</h2>
<div class="box" style="overflow: hidden auto;">
<h1>Heading extends outside the box!</h1>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
</div>
<h2>Overflow: scroll clip</h2>
<div class="box" style="overflow: scroll clip;">
<h1>Heading extends outside the box!</h1>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
</div>
<h2>Overflow: clip scroll</h2>
<div class="box" style="overflow: clip scroll;">
<h1>Heading extends outside the box!</h1>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
</div>
<h2>Overflow: visible hidden</h2>
<div class="box" style="overflow: visible hidden;">
<h1>Heading extends outside the box!</h1>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
</div>
<h1>Separate 'overflow-x' / 'overflow-y' property</h1>
<h2>overflow-x: auto, overflow-y: hidden</h2>
<div class="box" style="overflow-x: auto; overflow-y: hidden;">
<h1>Heading extends outside the box!</h1>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
</div>
<h2>overflow-x: hidden, overflow-y: auto</h2>
<div class="box" style="overflow-x: hidden; overflow-y: auto;">
<h1>Heading extends outside the box!</h1>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
</div>
<h2>overflow-x: scroll, overflow-y: clip</h2>
<div class="box" style="overflow-x: scroll; overflow-y: clip;">
<h1>Heading extends outside the box!</h1>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
</div>
<h2>overflow-y: scroll</h2>
<div class="box" style="overflow-y: scroll;">
<h1>Heading extends outside the box!</h1>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
</div>
<h2>overflow-x: visible</h2>
<div class="box" style="overflow-x: visible;">
<h1>Heading extends outside the box!</h1>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
<p>Hello this is some text</p>
</div>
</body>
</html>