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

Side by Side Diff: third_party/WebKit/LayoutTests/transitions/position-background-transition.html

Issue 2606063003: CSS Transitions: Correct expectation for position-background-transition (Closed)
Patch Set: rebase Created 3 years, 11 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 <style> 2 <style>
3 #target { 3 #target {
4 position: absolute; 4 position: absolute;
5 top: 0; 5 top: 0;
6 width: 100px; 6 width: 100px;
7 height: 100px; 7 height: 100px;
8 background: red; 8 background: red;
9 -webkit-transition-property: top, background; 9 transition-property: top, background;
10 -webkit-transition-duration: 200ms; 10 transition-duration: 50ms;
11 transform: translateZ(0); 11 transform: translateZ(0);
12 } 12 }
13 </style> 13 </style>
14 <script> 14 <script>
15 'use strict';
15 if (window.testRunner) { 16 if (window.testRunner) {
16 testRunner.waitUntilDone(); 17 testRunner.waitUntilDone();
17 } 18 }
18 onload = function() { 19 onload = function() {
19 var target = document.getElementById('target'); 20 var target = document.getElementById('target');
20 target.style.top = '100px'; 21 target.style.top = '100px';
21 target.style.background = 'green'; 22 target.style.background = 'green';
22 } 23 }
23 if (window.testRunner) { 24 if (window.testRunner) {
24 document.addEventListener('transitionend', function() { 25 document.addEventListener('transitionend', function() {
25 testRunner.notifyDone(); 26 testRunner.notifyDone();
26 }); 27 });
27 } 28 }
28 </script> 29 </script>
29 <div id="target">This box should transition from red to green.</div> 30 <div id="target">This box should transition from red to green.</div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698