layout/base/tests/test_bug731777.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/base/tests/test_bug731777.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,49 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<head>
     1.7 +  <title>Test for Bug 731777</title>
     1.8 +  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     1.9 +  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    1.10 +  <style>
    1.11 +    #container {
    1.12 +      position: relative;
    1.13 +      height: 300px;
    1.14 +      width: 300px;
    1.15 +      margin: 50px 100px;
    1.16 +      border: 2px solid blue;
    1.17 +      background-color: #044B0A;
    1.18 +      
    1.19 +      -moz-perspective: 500px;
    1.20 +      overflow:hidden;
    1.21 +  }
    1.22 +
    1.23 +  #inner {
    1.24 +      margin: 0px;
    1.25 +      width: 480px;
    1.26 +      border: 2px solid blue;
    1.27 +      height: 220px;
    1.28 +      background-color: #844BCA;
    1.29 +      
    1.30 +      -moz-transform: rotateY(91deg) translateX(0px) translateZ(0px);
    1.31 +      transition: 5s;
    1.32 +  }
    1.33 +    
    1.34 +  </style>
    1.35 +</head>
    1.36 +<body>
    1.37 +<div id="container">
    1.38 +  <div id="inner"></div>
    1.39 +</div>
    1.40 +
    1.41 +<pre id="test">
    1.42 +<script type="application/javascript">
    1.43 +
    1.44 +/** Test for Bug 731777 **/
    1.45 +
    1.46 +is(document.elementFromPoint(325,170), document.getElementById("inner"), "Able to hit transformed object");
    1.47 +is(document.elementFromPoint(405,170), document.getElementById("inner"), "Able to hit transformed object");
    1.48 +
    1.49 +</script>
    1.50 +</pre>
    1.51 +</body>
    1.52 +</html>

mercurial