| Index: LayoutTests/fast/css/rem-units-body.html
|
| diff --git a/LayoutTests/fast/css/rem-units-body.html b/LayoutTests/fast/css/rem-units-body.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a66b68084ce9d90791aaf07efbe7aebfcc5ce600
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/css/rem-units-body.html
|
| @@ -0,0 +1,29 @@
|
| +<!DOCTYPE html>
|
| +
|
| +<style>
|
| + html {
|
| + font-size: 20px;
|
| + }
|
| +
|
| + body {
|
| + font-size: 2rem;
|
| + }
|
| +</style>
|
| +
|
| +<body>
|
| + This should be 40px tall.
|
| + <p id="result"></p>
|
| +</body>
|
| +
|
| +<script>
|
| + if (window.testRunner)
|
| + testRunner.dumpAsText();
|
| +
|
| + // Can't use js-test.js since it causes style recalcs which make this test not
|
| + // test the bug with calling styleForElement inside Document::inheritHtmlAndBodyElementStyles.
|
| + var result = document.getElementById("result");
|
| + if (getComputedStyle(document.body).fontSize === "40px")
|
| + result.textContent = "PASS";
|
| + else
|
| + result.textContent = "FAIL";
|
| +</script>
|
|
|