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> |