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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/transition-zoomed-length.html

Issue 2680923005: Refactor CSS Transitions to use CSSInterpolationTypes instead of AnimatableValues (Closed)
Patch Set: cleanups Created 3 years, 10 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 <script src="../resources/testharness.js"></script> 2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../resources/testharnessreport.js"></script>
4 <style> 4 <style>
5 #target { 5 #target {
6 transition: 1s;
alancutter (OOO until 2018) 2017/02/16 04:58:18 This test was broken. We can't have transitions en
7 border-style: solid; 6 border-style: solid;
8 outline-style: solid; 7 outline-style: solid;
9 column-rule-style: solid; 8 column-rule-style: solid;
10 } 9 }
11 </style> 10 </style>
12 <div id="target"></div> 11 <div id="target"></div>
13 <script> 12 <script>
14 var lengthProperties = [ 13 var lengthProperties = [
15 'baselineShift', 14 'baselineShift',
16 'borderBottomWidth', 15 'borderBottomWidth',
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 'y', 64 'y',
66 'lineHeight', 65 'lineHeight',
67 ]; 66 ];
68 var expected = {}; 67 var expected = {};
69 68
70 setup(() => { 69 setup(() => {
71 for (var property of lengthProperties) { 70 for (var property of lengthProperties) {
72 target.style[property] = '10px'; 71 target.style[property] = '10px';
73 expected[property] = getComputedStyle(target)[property]; 72 expected[property] = getComputedStyle(target)[property];
74 } 73 }
74 target.style.transition = '1s';
75 internals.setZoomFactor(2); 75 internals.setZoomFactor(2);
76 }); 76 });
77 77
78 for (var property of lengthProperties) { 78 for (var property of lengthProperties) {
79 test(() => { 79 test(() => {
80 assert_equals(getComputedStyle(target)[property], expected[property]); 80 assert_equals(getComputedStyle(target)[property], expected[property]);
81 }, 'Computed value of transitionable ' + property + ' should not change when z oom changes'); 81 }, 'Computed value of transitionable ' + property + ' should not change when z oom changes');
82 } 82 }
83 </script> 83 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698