<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html lang="en"> | |
<head> | |
<title>clip and zooming</title> | |
<style type="text/css" media="screen"> | |
html { | |
zoom: 150%; | |
} | |
body { | |
margin: 0; | |
} | |
.tester { | |
position: absolute; | |
top: 100px; | |
left: 50px; | |
height: 100px; | |
width: 100px; | |
background-color: red; | |
} | |
.box { | |
position: absolute; | |
top: 50px; | |
left: 0px; | |
height: 200px; | |
width: 200px; | |
background-color: green; | |
clip: rect(50px 150px 150px 50px); | |
} | |
</style> | |
</head> | |
<body> | |
<p><a href="https://bugs.webkit.org/show_bug.cgi?id=24753">https://bugs.webkit.org/show_bug.cgi?id=24753</a></p> | |
<p>Test CSS clip with zooming. You should not see any red below</p> | |
<div class="tester"> | |
</div> | |
<div class="box"> | |
</div> | |
</body> | |
</html> |