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

Unified 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, 6 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/css3/device-adapt/viewport-relative-font.html
diff --git a/LayoutTests/css3/device-adapt/viewport-relative-font.html b/LayoutTests/css3/device-adapt/viewport-relative-font.html
new file mode 100644
index 0000000000000000000000000000000000000000..87630ed20e7abd4fc56f3b4b2b319bd3c888e51f
--- /dev/null
+++ b/LayoutTests/css3/device-adapt/viewport-relative-font.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Font relative lengths in @viewport relative to initial font</title>
+ <style>
+ html { font-size: 100px; }
+ </style>
+</head>
+<body>
+ <script>
+ document.body.offsetWidth; // Trigger style resolving
+ </script>
+ <style>
+ @viewport {
+ width: 10em;
+ height: 10rem;
+ }
+ </style>
+ <script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ document.body.offsetWidth; // Trigger style resolving
+ 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
+ }
+ </script>
+</body>
+</html>
« 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