forked from mirrors/gecko-dev
Automatic update from web-platform-tests [css-values] move tests from vendor-imports into the main suite (#27506) -- wpt-commits: e4d0a6e2a32cbe26afa2255b8b5921bba82f69b4 wpt-pr: 27506
22 lines
546 B
HTML
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>
|