servo/tests/wpt/css-tests/css-backgrounds-3_dev/html4/border-top-left-radius-values-001.htm

39 lines
No EOL
1.4 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>CSS Test: 'Border-top-left-radius' with two values.</title>
<link href="http://www.microsoft.com/" rel="author" title="Microsoft">
<link href="http://www.w3.org/TR/css3-background/#border-top-left-radius" rel="help">
<meta content="" name="flags">
<meta content="The first value of the 'border-top-left-radius' is the horizontal radius of the rounded corner and the second value is its vertical radius." name="assert">
<style type="text/css">
body
{
margin: 10px;
}
#test
{
height: 288px;
width: 384px;
border: 2px solid;
border-top-left-radius: 50px 80px;
}
#reference
{
position: absolute;
border: 2px solid blue;
border-left: none;
border-top: none;
left: 10px;
top: 10px;
width: 50px;
height: 80px;
}
</style>
</head>
<body>
<div id="reference"></div>
<div id="test"></div>
<p>Test passes if the two blue lines are radii of the rounded corner.</p>
</body></html>