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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/css/css-get-keyframes.html

Issue 1371723002: Devtools Animations: Add method to fetch CSS keyframed animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 <html>
2 <head>
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script>
4 <script type="text/javascript" src="../../http/tests/inspector-protocol/css-prot ocol-test.js"></script>
5 <script type="text/javascript" src="../../http/tests/inspector-protocol/dom-prot ocol-test.js"></script>
6 <link rel="stylesheet" type="text/css" href="resources/keyframes.css"></link>
7 <script type="text/javascript">
8 function test()
9 {
10 InspectorTest.sendCommandOrDie("DOM.enable", {});
11 InspectorTest.sendCommandOrDie("CSS.enable", {}, onCSSEnabled);
12
13 function onCSSEnabled()
14 {
15 InspectorTest.sendCommandOrDie("DOM.getDocument", {}, onDocumentId);
16 }
17
18 function onDocumentId(result)
19 {
20 documentNodeId = result.root.nodeId;
21 InspectorTest.requestNodeId(documentNodeId, "#element", onNodeId);
22 }
23
24 function onNodeId(nodeId)
25 {
26 InspectorTest.loadAndDumpCSSAnimationsForNode(nodeId, InspectorTest.comp leteTest.bind(InspectorTest));
27 }
28 }
29 </script>
30 <style>
31 #element {
32 animation: animName 1s 2s, mediaAnim 2s, doesNotExist 3s, styleSheetAnim 0s;
33 }
34
35 @keyframes animName {
36 from {
37 width: 100px;
38 }
39 10% {
40 width: 150px;
41 }
42 100% {
43 width: 200px;
44 }
45 }
46
47 @media (min-width: 1px) {
48 @keyframes mediaAnim {
49 from {
50 opacity: 0;
51 }
52 to {
53 opacity: 1;
54 }
55 }
56 }
57
58 </style>
59 </head>
60 <body onload="runTest()">
61 <div id="element"></div>
62 </body>
63 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698