OLD | NEW |
(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> |
OLD | NEW |