ladybird/Base/res/html/misc/clip.html
martinfalisse eef0edae7a Base: Clean up Clip test page after absolutely positioned divs fix
Clean up the Clip test page after adding the logic necessary so that
absolutely positioned divs are correctly positioned.
2022-08-14 11:22:52 +02:00

58 lines
1.6 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>CSS Clip Test Page</title>
<style>
.box {
height: 100px;
width: 100px;
position: absolute;
background-color: aquamarine;
}
.separate-tests {
height: 125px;
border-width: 0px;
}
</style>
</head>
<body>
<h2>This is a normal rect with auto clipping</h2>
<div class="separate-tests">
<div class="box" style="clip: rect(auto, auto, auto, auto);"></div>
</div>
<h2>This is a div with the left side clipped out</h2>
<div class="separate-tests">
<div class="box" style="clip: rect(auto, auto, auto, 50px);"></div>
</div>
<h2>One can create a rect with or without commas and the clip works</h2>
<div class="separate-tests">
<div class="box" style="clip: rect(4em auto auto auto);"></div>
</div>
<h2>Text and borders are clipped too</h2>
<div class="separate-tests">
<div class="box" style="clip: rect(-5px auto auto 50px); border: 2px solid black;">
Lots of text Lots of text
Lots of text Lots of text
Lots of text Lots of text
Lots of text Lots of text
Lots of text Lots of text
</div>
</div>
<h2>:yakgone:</h2>
<div class="separate-tests">
<div class="box" style="clip: rect(0px 0px 0px 0px); border: 2px solid black;">
Lots of text Lots of text
Lots of text Lots of text
Lots of text Lots of text
Lots of text Lots of text
Lots of text Lots of text
</div>
</div>
</body>