1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: 'clip': Basic Test</title>
5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/clipping/016.html" type="text/html">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#clipping">
8 <style type="text/css">
9 .clip {
10 width: 60px;
11 height: 60px;
12 background: url(support/60x60-gg-rr.png) no-repeat red;
13 position: absolute;
14 clip: rect(0px, 60px, 30px, 0px);
15 }
16 </style>
17 </head>
18 <body>
19
20 <p>Test passes if there is <strong>a green rectangle</strong> and <strong>no red</strong>.</p>
21
22 <div class="clip"></div></body>
23 </html>