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

Side by Side Diff: LayoutTests/fast/css/rem-calc-dynamic-scaling.html

Issue 1181023004: Move rem handling out of CSSParserValues.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Another attempt Created 5 years, 4 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
« no previous file with comments | « no previous file | LayoutTests/platform/linux/fast/css/rem-calc-dynamic-scaling-expected.png » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <body> 2 <body>
3 This is a test of dynamic rem unit scaling. Changes to the root element's font size need to cause dependent elements in the document tree 3 This is a test of dynamic rem unit scaling. Changes to the root element's font size need to cause dependent elements in the document tree
4 to update as well. 4 to update as well.
5 <div style="font-size:10px"> 5 <div style="font-size:10px">
6 This text should be small. 6 This text should be small.
7 <div style="font-size:1rem"> 7 <div style="font-size:calc(0% + 1rem)">
8 This text should match the root (and be 24px). 8 This text should match the root (and be 24px).
9 </div> 9 </div>
10 </div> 10 </div>
11 <script> 11 <script>
12 document.body.offsetWidth; 12 document.body.offsetWidth;
13 document.documentElement.style.fontSize = '24px'; 13 document.documentElement.style.fontSize = '24px';
14 </script> 14 </script>
15 </body> 15 </body>
16 </html> 16 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/platform/linux/fast/css/rem-calc-dynamic-scaling-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698