layout/reftests/w3c-css/submitted/values3/rem-root-font-size-restyle-1.html
author Emilio Cobos Álvarez <emilio@crisal.io>
Sat, 24 Jun 2017 09:44:53 +0200
changeset 600280 60e8b4b6898435802974f8f6bfbcf4760480d885
permissions -rw-r--r--
Bug 1375930: Test that rem units for the root font-size aren't resolved against the root font size. r=heycam Of course there wasn't any test for this. MozReview-Commit-ID: EBMxiC2Ipvb

<!doctype html>
<title>CSS Test: Test for rem units on the root element</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="help" href="https://drafts.csswg.org/css-values/#rem">
<link rel="match" href="rem-root-font-size-restyle-1-ref.html">
<style>
:root {
  font-size: 2rem;
}

div {
  width: 10rem;
  height: 10rem;
  background: green;
}
</style>
<div></div>
<script>
  document.documentElement.offsetTop;
  // Force a style recalc.
  document.documentElement.style.color = "green";
</script>