blob: 18a7a5d25398ad50fee0e323ac6051e6db70b927 [file] [log] [blame]
<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>