Files
servo/tests/wpt/css-tests/css21_dev/html4/clip-non-absolute-001.htm

21 lines
778 B
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Test: Clip on non-positioned element</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
<link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#clipping">
<meta name="flags" content="">
<meta name="assert" content="Clip does not apply to non-positioned elements.">
<style type="text/css">
div
{
clip: rect(10px, 25px, 50px, 10px);
color: green;
}
</style>
</head>
<body>
<p>Test passes if there are the words "Filler Text" below.</p>
<div>Filler Text</div>
</body>
</html>