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

Unified Diff: LayoutTests/css3/device-adapt/viewport-initial-width-zero.html

Issue 16826008: [css-device-adapt] Implemented spec changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Corrected expectations for tests added after original upload. 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 side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698