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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/custom-properties/value-tainting.html

Issue 2532953008: Apply custom property animations (Closed)
Patch Set: Make animatedElement usage consistent Created 4 years 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 <script src="../resources/testharness.js"></script> 1 <script src="../../resources/testharness.js"></script>
2 <script src="../resources/testharnessreport.js"></script> 2 <script src="../../resources/testharnessreport.js"></script>
3 <body></body> 3 <body></body>
4 <script> 4 <script>
5 function createTarget() { 5 function createTarget() {
6 return document.body.appendChild(document.createElement('div')); 6 return document.body.appendChild(document.createElement('div'));
7 } 7 }
8 8
9 function setTaintedValue(target, property, value) { 9 function setTaintedValue(target, property, value) {
10 target.animate({[property]: value}, {fill: 'forwards'}); 10 target.animate({[property]: value}, {fill: 'forwards'});
11 assert_equals(getComputedStyle(target).getPropertyValue(property), value, 11 assert_equals(getComputedStyle(target).getPropertyValue(property), value,
12 `Tainted value ${value} set on ${property} by animation`); 12 `Tainted value ${value} set on ${property} by animation`);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 test(() => { 62 test(() => {
63 var target = createTarget(); 63 var target = createTarget();
64 setTaintedValue(target, '--tainted', 'tainted'); 64 setTaintedValue(target, '--tainted', 'tainted');
65 testTaintedSubstitution(target, 'var(--unknown, var(--tainted))', { 65 testTaintedSubstitution(target, 'var(--unknown, var(--tainted))', {
66 animationName: 'none', 66 animationName: 'none',
67 customProperty: ' tainted', 67 customProperty: ' tainted',
68 }); 68 });
69 }, 'Animation tainted fallback values are omitted in CSS property animation-name '); 69 }, 'Animation tainted fallback values are omitted in CSS property animation-name ');
70 </script> 70 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698