blob: fd868c18ecfe060aa3203ef305a75f168a517331 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
<!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>
|