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

Side by Side Diff: LayoutTests/css3/filters/filter-repaint-composited-fallback.html

Issue 637763002: Unprefix usage of -webkit-transform in tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 This tests verifies that filters work even on composited layers that fallbac k to rendering in software. 3 This tests verifies that filters work even on composited layers that fallbac k to rendering in software.
4 NOTE: It is using the fact that Safari can draw drop-shadows in GPU only if the filter is the last one in the filter chain. 4 NOTE: It is using the fact that Safari can draw drop-shadows in GPU only if the filter is the last one in the filter chain.
5 You should see three green rectangles slightly rotated and blurred. There sh ould be no red. 5 You should see three green rectangles slightly rotated and blurred. There sh ould be no red.
6 --> 6 -->
7 <html> 7 <html>
8 <head> 8 <head>
9 <style> 9 <style>
10 .box { 10 .box {
11 position: relative; 11 position: relative;
12 margin: 10px; 12 margin: 10px;
13 height: 50px; 13 height: 50px;
14 width: 50px; 14 width: 50px;
15 background-color: green; 15 background-color: green;
16 -webkit-transform: translate(50px, 0px) rotate(20deg); 16 transform: translate(50px, 0px) rotate(20deg);
17 } 17 }
18 18
19 .before { 19 .before {
20 background-color: red; 20 background-color: red;
21 } 21 }
22 22
23 .blur { 23 .blur {
24 /* force a composited layer */ 24 /* force a composited layer */
25 -webkit-transform: translate3d(0, 0, 0); 25 transform: translate3d(0, 0, 0);
26 background: red; 26 background: red;
27 margin: 50px; 27 margin: 50px;
28 -webkit-filter: drop-shadow(0px 0px 1px blue) blur(5px); 28 -webkit-filter: drop-shadow(0px 0px 1px blue) blur(5px);
29 width: 0px; 29 width: 0px;
30 height: 0px; 30 height: 0px;
31 } 31 }
32 </style> 32 </style>
33 33
34 <script src="../../resources/run-after-display.js"></script> 34 <script src="../../resources/run-after-display.js"></script>
35 <script> 35 <script>
(...skipping 14 matching lines...) Expand all
50 <body onload="repaintTest()"> 50 <body onload="repaintTest()">
51 51
52 <div class="blur"> 52 <div class="blur">
53 <div class="box"></div> 53 <div class="box"></div>
54 <div class="box before"></div> 54 <div class="box before"></div>
55 <div class="box"></div> 55 <div class="box"></div>
56 </div> 56 </div>
57 57
58 </body> 58 </body>
59 </html> 59 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698