| <html> |
| <head> |
| <script> |
| internals.settings.setCSSVariablesEnabled(true); |
| </script> |
| <style> |
| #inspected { |
| -webkit-var-a: green; |
| color: -webkit-var(a); |
| } |
| |
| </style> |
| <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| <script src="../../../http/tests/inspector/elements-test.js"></script> |
| <script> |
| |
| function test() |
| { |
| WebInspector.showPanel("elements"); |
| InspectorTest.selectNodeAndWaitForStylesWithComputed("inspected", dumpAllStyles); |
| |
| function dumpAllStyles() |
| { |
| InspectorTest.dumpSelectedElementStyles(); |
| InspectorTest.completeTest(); |
| } |
| } |
| |
| </script> |
| </head> |
| |
| <body onload="runTest()"> |
| <p> |
| Tests that webkit css variables can be loaded correctly. |
| </p> |
| |
| <div id="inspected">Text</div> |
| |
| </body> |
| </html> |