layout/reftests/transform-3d/perspective-origin-3a.html

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 <!DOCTYPE html>
     2 <html xmlns="http://www.w3.org/1999/xhtml">
     3   <style type="text/css">
     5 .parentWithPerspective {
     6   -moz-perspective: 100px;
     7   -moz-perspective-origin: 150px 150px;
     8   -webkit-perspective: 100px;
     9   -webkit-perspective-origin: 150px 150px;
    10   /* Changing width/height to 500px should not change the rendering. */
    11   height:500px;
    12 }
    14 .parentWithPerspective > div {
    15   position:absolute;
    16   top:100px;
    17   left:100px;
    18   width:100px;
    19   height:100px;
    20 }
    22 .notTransformed {
    23   outline: 1px solid black;
    24 }
    26 .transformed {
    27   background:blue;
    28   -moz-transform-origin: 0% 0%;
    29   -moz-transform: rotateY(45deg);
    30   -webkit-transform-origin: 0% 0%;
    31   -webkit-transform: rotateY(45deg);
    32 }
    34   </style>
    35   <body>
    36     <div class="parentWithPerspective">
    37       <div class="notTransformed"></div>
    38       <div class="transformed"></div>
    39     </div>
    40   </body>
    41 </html>

mercurial