summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/1374062.html
blob: 33c53b27291901c5c45c77ad6f1ee925e969077d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!doctype html>
<title>
  Test for bug 1374062: We don't update the root font-size just because the
  element has no parent element.
</title>
<style>
  :root { font-size: 5px; }
  [restyled] { color: green; font-size: 2rem; }
</style>
<div>
  Should be green, and have a 10px font-size.
</div>
<script>
  getComputedStyle(document.createElement('div')).color;
  document.querySelector('div').setAttribute("restyled", "");
</script>