inherited-values.html 389 Bytes
Newer Older
1 2 3
<script>
internals.settings.setCSSVariablesEnabled(true);
</script>
4 5 6 7 8 9 10 11 12 13 14 15 16 17
<style>
body {
    -webkit-var-foreground: green;
    -webkit-var-background: rgb(255, 255, 255);
}
div {
    color: -webkit-var(foreground);
    background-color: red;
    background-color: -webkit-var(background);
}
</style>
<div>
This text should be green on a white background. There should be no red visible.
</div>