Index: LayoutTests/css3/device-adapt/viewport-initial-width-zero.html |
diff --git a/LayoutTests/css3/device-adapt/viewport-initial-width-zero.html b/LayoutTests/css3/device-adapt/viewport-initial-width-zero.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7845f36615834299c563cfe1e7acc919de53b757 |
--- /dev/null |
+++ b/LayoutTests/css3/device-adapt/viewport-initial-width-zero.html |
@@ -0,0 +1,22 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+ <title>Use initial height for auto height if initial width 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: 100px; |
+ height: auto; |
+ } |
+ </style> |
+ <script type="text/javascript"> |
+ function test() { |
+ if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+ alert(internals.configurationForViewport(document, 1, 320, 480, 0, 200)); |
+ } |
+ } |
+ </script> |
+</head> |
+<body onload="test();"></body> |
+</html> |