Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

<!DOCTYPE html>
<title>CSS Values and Units Test: Using rlh units in lengths on the root element</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
:root {
line-height: 73px;
padding-left: 2rlh;
}
</style>
<script>
test(() => {
assert_equals(getComputedStyle(document.documentElement).paddingLeft, "146px");
}, "Non font or line-height properties on :root should resolve rlh against :root line-height");
</script>