Skip to content

Commit d8dcbde

Browse files
committed
Add test case for css clip
1 parent 5712b62 commit d8dcbde

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

tests/cases/clip.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Inline text in the top element</title>
5+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6+
<script type="text/javascript" src="../test.js"></script>
7+
<style>
8+
span {
9+
color:blue;
10+
}
11+
p {
12+
background-color: green;
13+
}
14+
div {
15+
background: red;
16+
}
17+
</style>
18+
19+
</head>
20+
<body>
21+
<div style="clip: rect(0px, 500px, 200px, 200px); position: absolute;">Some inline text <span> followed by text in span </span> followed by more inline text.
22+
<p>Then a block level element.</p>
23+
Then more inline text.</div>
24+
</body>
25+
</html>

0 commit comments

Comments
 (0)