fune/testing/web-platform/tests/css/css-values/rem-root-font-size-restyle-1.html
Philip Jägenstedt e862bb8110 Bug 1691043 [wpt PR 27506] - [css-values] move tests from vendor-imports into the main suite, a=testonly
Automatic update from web-platform-tests
[css-values] move tests from vendor-imports into the main suite (#27506)

--

wpt-commits: e4d0a6e2a32cbe26afa2255b8b5921bba82f69b4
wpt-pr: 27506
2021-02-12 12:12:13 +00:00

22 lines
546 B
HTML

<!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>