haikuwebkit/LayoutTests/fast/css/variables/rule-property-get-css-value...

12 lines
235 B
HTML

<html>
<head>
<style>
:root { --bgcolor: green; background: var(--bgcolor); }
</style>
<body>
<script>
document.write(document.styleSheets[0].cssRules[0].style.getPropertyCSSValue("background-color").cssText)
</script>
</body>
</html.