Index: LayoutTests/css3/device-adapt/viewport-initial-height-zero.html |
diff --git a/LayoutTests/css3/device-adapt/viewport-initial-height-zero.html b/LayoutTests/css3/device-adapt/viewport-initial-height-zero.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0718db60fd69850f168d9dadd09dbb368092364e |
--- /dev/null |
+++ b/LayoutTests/css3/device-adapt/viewport-initial-height-zero.html |
@@ -0,0 +1,22 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+ <title>Use initial width for auto width if initial height is zero</title> |
+ <link rel="help" href="http://www.w3.org/TR/css-device-adapt/#constraining-viewport-descriptor-values"> |
+ <style type="text/css"> |
+ @viewport { |
+ width: auto; |
+ height: 100px; |
+ } |
+ </style> |
+ <script type="text/javascript"> |
+ function test() { |
+ if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+ alert(internals.configurationForViewport(document, 1, 320, 480, 200, 0)); |
+ } |
+ } |
+ </script> |
+</head> |
+<body onload="test();"></body> |
+</html> |