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/css3/device-adapt/viewport-relative-font.html

Issue 18023018: @viewport lengths relative to initial font. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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/css3/device-adapt/viewport-relative-font-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 <html>
3 <head>
4 <title>Font relative lengths in @viewport relative to initial font</title>
5 <style>
6 html { font-size: 100px; }
7 </style>
8 </head>
9 <body>
10 <script>
11 document.body.offsetWidth; // Trigger style resolving
12 </script>
13 <style>
14 @viewport {
15 width: 10em;
16 height: 10rem;
17 }
18 </style>
19 <script>
20 if (window.testRunner) {
21 testRunner.dumpAsText();
22 document.body.offsetWidth; // Trigger style resolving
23 alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
Peter Beverloo 2013/07/04 13:20:29 It doesn't matter very much, but I personally pref
24 }
25 </script>
26 </body>
27 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/css3/device-adapt/viewport-relative-font-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698