Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Side by Side Diff: LayoutTests/transforms/transform-properties-mixed-expected.html

Issue 1158603003: CSS Independent Transform Properties (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add combined tests with motion-path and transform Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 .container {
6 width: 200px;
7 height: 200px;
8 margin: 75px 0 0 75px;
9 border: none;
10 }
11 .cube {
12 width: 100%;
13 height: 100%;
14 backface-visibility: visible;
15 perspective-origin: 150% 150%;
16 transform-style: preserve-3d;
17 perspective: 500px;
18 }
19 .face {
20 display: block;
21 position: absolute;
22 width: 100px;
23 height: 100px;
24 border: none;
25 line-height: 100px;
26 font-family: sans-serif;
27 font-size: 60px;
28 color: white;
29 text-align: center;
30 }
31 .front {
32 background: rgba(0, 0, 0, 0.3);
33 transform: translate3d(0, 0, 50px);
34 }
35 .back {
36 background: rgba(0, 255, 0, 1);
37 color: black;
38 transform: translate3d(0, 0, -50px) rotate3d(0, 1, 0, 180deg);
39 }
40 .right {
41 background: rgba(196, 0, 0, 0.7);
42 transform: translateX(50px) rotate3d(0, 1, 0, 90deg);
43 }
44 .left {
45 background: rgba(0, 0, 196, 0.7);
46 transform: translateX(-50px) rotate3d(0, 1, 0, -90deg);
47 }
48 .top {
49 background: rgba(196, 196, 0, 0.7);
50 transform: translateY(-50px) rotate3d(1, 0, 0, 90deg);
51 }
52 .bottom {
53 background: rgba(196, 0, 196, 0.7);
54 transform: translateY(50px) rotate3d(1, 0, 0, -90deg);
55 }
56 .scaleX {
57 transform: scaleX(0.5);
58 }
59 .scaleY {
60 transform: scaleY(0.5);
61 }
62 .scaleZ {
63 transform: scaleZ(0.5);
64 }
65 </style>
66 </head>
67 <body>
68 <div class="container">
69 <div class="cube scaleY">
70 <div class="face front">1</div>
71 <div class="face back">2</div>
72 <div class="face right">3</div>
73 <div class="face left">4</div>
74 <div class="face top">5</div>
75 <div class="face bottom">6</div>
76 </div>
77 <div class="cube scaleX scaleZ">
78 <div class="face front">1</div>
79 <div class="face back">2</div>
80 <div class="face right">3</div>
81 <div class="face left">4</div>
82 <div class="face top">5</div>
83 <div class="face bottom">6</div>
84 </div>
85 </div>
86 </body>
87 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698