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

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

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

mercurial