2010-09-15 08:11:26 -07:00
|
|
|
<!DOCTYPE HTML>
|
2013-01-15 19:17:44 -08:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>CSS Test: Test for calc() on background-position</title>
|
|
|
|
<link rel="author" title="L. David Baron" href="https://bugzilla.mozilla.org/show_bug.cgi?id=594934">
|
|
|
|
<link rel="help" href="http://www.w3.org/TR/css3-values/#calc-notation">
|
|
|
|
<meta name="flags" content="">
|
|
|
|
<style type="text/css">
|
2010-09-15 08:11:26 -07:00
|
|
|
|
|
|
|
p {
|
|
|
|
height: 50px; width: 200px;
|
|
|
|
border: thin solid;
|
|
|
|
background-image: url(../backgrounds/blue-32x32.png);
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
}
|
|
|
|
|
2013-01-15 19:16:32 -08:00
|
|
|
#one { background-position: calc(50px + 50%) calc(100% - 30px) }
|
|
|
|
#two { background-position: calc(-12.5% + 3px) calc(-10px - 50%) }
|
2010-09-15 08:11:26 -07:00
|
|
|
|
|
|
|
</style>
|
2013-01-15 19:17:44 -08:00
|
|
|
</head>
|
|
|
|
<body>
|
2010-09-15 08:11:26 -07:00
|
|
|
<p id="one"></p>
|
|
|
|
<p id="two"></p>
|
2013-01-15 19:17:44 -08:00
|
|
|
</body>
|
|
|
|
</html>
|