Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / rem-units-body.html
bloba66b68084ce9d90791aaf07efbe7aebfcc5ce600
1 <!DOCTYPE html>
3 <style>
4 html {
5 font-size: 20px;
8 body {
9 font-size: 2rem;
11 </style>
13 <body>
14 This should be 40px tall.
15 <p id="result"></p>
16 </body>
18 <script>
19 if (window.testRunner)
20 testRunner.dumpAsText();
22 // Can't use js-test.js since it causes style recalcs which make this test not
23 // test the bug with calling styleForElement inside Document::inheritHtmlAndBodyElementStyles.
24 var result = document.getElementById("result");
25 if (getComputedStyle(document.body).fontSize === "40px")
26 result.textContent = "PASS";
27 else
28 result.textContent = "FAIL";
29 </script>