Skip to content

Commit 541f6a6

Browse files
committed
Expand clip test case
1 parent d8dcbde commit 541f6a6

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

tests/cases/clip.html

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,30 @@
1313
}
1414
div {
1515
background: red;
16+
border: 5px solid blue;
1617
}
1718
</style>
1819

1920
</head>
2021
<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+
<div style="clip: rect(0px, 400px, 50px, 200px); ">Some inline text <span> followed by text in span </span> followed by more inline text.
23+
<p>Then a block level element.</p>
24+
Then more inline text.</div>
25+
26+
<div style="clip: rect(0px, 400px, 50px, 200px); position: relative; ">Some inline text <span> followed by text in span </span> followed by more inline text.
27+
<p>Then a block level element.</p>
28+
Then more inline text.</div>
29+
30+
<div style="clip: rect(0px, 400px, 50px, 200px); position: fixed; ">Some inline text <span> followed by text in span </span> followed by more inline text.
31+
<p>Then a block level element.</p>
32+
Then more inline text.</div>
33+
34+
<div style="clip: rect(0px, 400px, 50px, 200px); position: absolute; top: 250px; left: 500px;">Some inline text <span> followed by text in span </span> followed by more inline text.
35+
<p>Then a block level element.</p>
36+
Then more inline text.</div>
37+
</body>
38+
39+
<div style="clip: rect(0px, 400px, 50px, 200px); position: absolute; top: 500px;">Some inline text <span> followed by text in span </span> followed by more inline text.
2240
<p>Then a block level element.</p>
2341
Then more inline text.</div>
2442
</body>

0 commit comments

Comments
 (0)