summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/1380224-1.html
blob: 32571379068895c53b63968bb313d72bd1cd1867 (plain)
1
2
3
4
5
6
7
8
9
10
11
<!DOCTYPE html>
<style>
p { color: var(--color); }
</style>
<body style="--color: red" onload="run()">
<p>This text should be green.</p>
<script>
function run() {
  document.body.style.setProperty("--color", "green");
}
</script>