layout/reftests/w3c-css/submitted/values3/calc-background-position-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/w3c-css/submitted/values3/calc-background-position-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,26 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<head>
     1.7 +  <title>CSS Test: Test for calc() on background-position</title>
     1.8 +  <link rel="author" title="L. David Baron" href="https://bugzilla.mozilla.org/show_bug.cgi?id=594934">
     1.9 +  <link rel="help" href="http://www.w3.org/TR/css3-values/#calc-notation">
    1.10 +  <meta name="flags" content="">
    1.11 +<style type="text/css">
    1.12 +
    1.13 +p {
    1.14 +    height: 50px; width: 200px;
    1.15 +    border: thin solid;
    1.16 +    background-image: url(../backgrounds/blue-32x32.png);
    1.17 +    background-repeat: no-repeat;
    1.18 +}
    1.19 +
    1.20 +#one { background-position: calc(50px + 50%) calc(100% - 30px) }
    1.21 +#two { background-position: calc(-12.5% + 3px) calc(-10px - 50%) }
    1.22 +
    1.23 +</style>
    1.24 +</head>
    1.25 +<body>
    1.26 +<p id="one"></p>
    1.27 +<p id="two"></p>
    1.28 +</body>
    1.29 +</html>

mercurial