| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <title>Hit testing on backface</title> | 3 <title>Hit testing on backface</title> |
| 4 <style type="text/css" media="screen"> | 4 <style type="text/css" media="screen"> |
| 5 | 5 |
| 6 div:hover { | 6 div:hover { |
| 7 outline: 2px solid orange; | 7 outline: 2px solid orange; |
| 8 } | 8 } |
| 9 #container { | 9 #container { |
| 10 width: 400px; | 10 width: 400px; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 else | 49 else |
| 50 log('Found ' + secondHit.id + ' on right: FAIL'); | 50 log('Found ' + secondHit.id + ' on right: FAIL'); |
| 51 } | 51 } |
| 52 | 52 |
| 53 </script> | 53 </script> |
| 54 </head> | 54 </head> |
| 55 <body onload="runTest()"> | 55 <body onload="runTest()"> |
| 56 | 56 |
| 57 <p>There are two boxes below, both rotated 180° in Y. The rightmost one has
backface-visibility: hidden, so you can't see it.</p> | 57 <p>There are two boxes below, both rotated 180° in Y. The rightmost one has
backface-visibility: hidden, so you can't see it.</p> |
| 58 <div id="container"> | 58 <div id="container"> |
| 59 <div class="box" id="box1" style="-webkit-transform: translateZ(1px) rotateY(1
80deg)"></div> | 59 <div class="box" id="box1" style="transform: translateZ(1px) rotateY(180deg)">
</div> |
| 60 <div class="box" id="box2" style="-webkit-transform: translateZ(1px) rotateY(1
80deg); -webkit-backface-visibility: hidden;"></div> | 60 <div class="box" id="box2" style="transform: translateZ(1px) rotateY(180deg);
-webkit-backface-visibility: hidden;"></div> |
| 61 </div> | 61 </div> |
| 62 | 62 |
| 63 <div id="results"> | 63 <div id="results"> |
| 64 </div> | 64 </div> |
| 65 | 65 |
| 66 </body> | 66 </body> |
| 67 </html> | 67 </html> |
| OLD | NEW |