Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: LayoutTests/fast/css/rem-units-body.html

Issue 147903002: CSS rem units should properly resolve on <body> (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/css/rem-units-body-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2
3 <style>
4 html {
5 font-size: 20px;
6 }
7
8 body {
9 font-size: 2rem;
10 }
11 </style>
12
13 <body>
14 This should be 40px tall.
15 <p id="result"></p>
16 </body>
17
18 <script>
19 if (window.testRunner)
20 testRunner.dumpAsText();
21
22 // Can't use js-test.js since it causes style recalcs which make this test n ot
23 // test the bug with calling styleForElement inside Document::inheritHtmlAnd BodyElementStyles.
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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/rem-units-body-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698