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

Side by Side Diff: LayoutTests/transitions/blendmode-transitions.html

Issue 15738009: Beat the transition tests with a sanity stick. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Pass presubmit. Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <style> 5 <style>
6 .box { 6 .box {
7 height: 100px; 7 height: 100px;
8 width: 100px; 8 width: 100px;
9 margin: 50px; 9 margin: 50px;
10 border: 1px solid black; 10 border: 1px solid black;
11 text-align: center; 11 text-align: center;
12 padding: 20px; 12 padding: 20px;
13 -webkit-transition-duration: 10s; 13 -webkit-transition-duration: 10s;
14 -webkit-transition-timing-function: linear; 14 -webkit-transition-timing-function: linear;
15 -webkit-transition-property: opacity; 15 -webkit-transition-property: opacity;
16 opacity:1; 16 opacity:1;
17 mix-blend-mode: difference; 17 mix-blend-mode: difference;
18 } 18 }
19 19
20 .final { 20 .final {
21 opacity: 0; 21 opacity: 0;
22 } 22 }
23 </style> 23 </style>
24 <script src="resources/transition-test-helpers.js"></script> 24 <script src="../animations/resources/animation-test-helpers.js"></script>
25 <script type="text/javascript"> 25 <script type="text/javascript">
26 26
27 const expectedValues = [ 27 const expectedValues = [
28 // [time, element-id, property, expected-value, tolerance] 28 // [time, element-id, property, expected-value, tolerance]
29 [0.5, 'box', 'mix-blend-mode', 'difference', 0], 29 [0.5, 'box', 'mix-blend-mode', 'difference', 0],
30 ]; 30 ];
31 31
32 function setupTest() 32 function setupTest()
33 { 33 {
34 document.getElementById('box').className = 'box final'; 34 document.getElementById('box').className = 'box final';
35 } 35 }
36 36
37 runTransitionTest(expectedValues, setupTest, false); 37 runTransitionTest(expectedValues, setupTest, false);
38 </script> 38 </script>
39 </head> 39 </head>
40 <body> 40 <body>
41 Test to make sure that the blendmode property is properly propagated to shared s tyles 41 Test to make sure that the blendmode property is properly propagated to shared s tyles
42 <div id="box" class="box">BOX</div> 42 <div id="box" class="box">BOX</div>
43 <div id="result"> 43 <div id="result">
44 </div> 44 </div>
45 45
46 </body> 46 </body>
47 </html> 47 </html>
OLDNEW
« no previous file with comments | « LayoutTests/transitions/background-transitions.html ('k') | LayoutTests/transitions/blendmode-transitions-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698