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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/inline-element-animation-end-hit-test.html

Issue 2974853002: Assorted small animation test moves (Closed)
Patch Set: Also rename test referring to 'players' Created 3 years, 5 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
(Empty)
1 <!DOCTYPE html>
2 <style>
3
4 body { margin: 0 }
5 .margin { margin: 100px }
6 .grow { animation: zoom .01s }
7 @keyframes zoom { 0% {transform: scale(0)} 100% {transform: scale(1)} }
8
9 #box {
10 will-change: transform;
11 display: inline-block;
12 background: #9cd;
13 width: 100px;
14 height: 100px;
15 opacity: 0.5;
16 }
17
18 </style>
19 <script src="../resources/js-test.js"></script>
20 <div class="margin">
21 <span class="grow">
22 <div id="box"></div>
23 </span>
24 </div>
25 <p id="description"></p>
26 <div id="console"></div>
27 <script>
28
29 jsTestIsAsync = true;
30
31 description("Tests that when a LayoutObject loses its PaintLayer " +
32 "due to completion of an animation of an inline statically positioned " +
33 "element, we correctly update the locations of descendent layers.");
34
35 var box = document.querySelector("#box");
36 box.parentNode.addEventListener("animationend", function() {
37 shouldBeTrue("document.elementFromPoint(150, 150) === box");
38 finishJSTest();
39 });
40
41 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698