1
0
Fork 0
firefox/testing/web-platform/tests/css/css-values/rlh-on-root-lengths.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

16 lines
573 B
HTML

<!DOCTYPE html>
<title>CSS Values and Units Test: Using rlh units in lengths on the root element</title>
<link rel="help" href="https://drafts.csswg.org/css-values-4/#rlh">
<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>