| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <style> | |
| 4 @font-face { | |
| 5 font-family: 'ahem'; | |
| 6 src: url(../../resources/Ahem.ttf); | |
| 7 } | |
| 8 </style> | |
| 9 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource
s/inspector-protocol-test.js"></script> | |
| 10 <script> | |
| 11 | |
| 12 async function test() { | |
| 13 function stabilize(key, value) { | |
| 14 var unstableKeys = ["documentURL", "baseURL", "frameId"]; | |
| 15 if (unstableKeys.indexOf(key) !== -1) | |
| 16 return "<" + typeof(value) + ">"; | |
| 17 return value; | |
| 18 } | |
| 19 | |
| 20 var whitelist = ["transform", "transform-origin", "height", "width", "displa
y", "outline-color", "color"]; | |
| 21 var response = await InspectorTest.sendCommandOrDie("DOMSnapshot.getSnapshot
", {"computedStyleWhitelist": whitelist}); | |
| 22 InspectorTest.log(JSON.stringify(response, stabilize, 2)); | |
| 23 InspectorTest.completeTest(); | |
| 24 } | |
| 25 | |
| 26 </script> | |
| 27 <template id="shadow-template"> | |
| 28 <style> | |
| 29 :host { | |
| 30 color: red; | |
| 31 } | |
| 32 </style> | |
| 33 <div style="font-family: ahem;"><h1>Hi!</h1></div> | |
| 34 </template> | |
| 35 </head> | |
| 36 <body class="body-class"> | |
| 37 <div style="font-family: ahem;"> | |
| 38 <div class="class1">Some Text</div> And More Text | |
| 39 <div style="display:inline-block; width: 200px"> | |
| 40 <p> | |
| 41 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque si
t amet est sem. | |
| 42 Aenean ut neque volutpat, posuere odio at, mollis nibh. Aenean sodales n
ulla et | |
| 43 ligula efficitur sollicitudin blandit sed lectus. Duis orci enim, sodale
s ac lectus sed, | |
| 44 hendrerit efficitur est. Quisque gravida facilisis viverra. | |
| 45 </p> | |
| 46 <ul class="class3"> | |
| 47 <li class="class4"></li> | |
| 48 <span>Lets have a span</span> | |
| 49 </ul> | |
| 50 </div> | |
| 51 <div style="transform: rotateZ(90deg); width: 200px">Rotated text!</div> | |
| 52 <iframe src="../dom/resources/simple-iframe.html" width="400" height="200"><
/iframe> | |
| 53 <div id="shadow-host"></div> | |
| 54 <script type="text/javascript"> | |
| 55 var host = document.querySelector("#shadow-host").createShadowRoot(); | |
| 56 var template = document.querySelector("#shadow-template"); | |
| 57 host.appendChild(template.content); | |
| 58 template.remove(); | |
| 59 window.onload = runTest; | |
| 60 </script> | |
| 61 </div> | |
| 62 </body> | |
| 63 </html> | |
| OLD | NEW |