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

Unified Diff: LayoutTests/css3/device-adapt/viewport-user-agent-style.html

Issue 25092003: Added missing @viewport to the simple UA stylesheet. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Retried after old chunk mismatch Created 7 years, 3 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-user-agent-style-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-user-agent-style.html
diff --git a/LayoutTests/css3/device-adapt/viewport-user-agent-style.html b/LayoutTests/css3/device-adapt/viewport-user-agent-style.html
new file mode 100644
index 0000000000000000000000000000000000000000..d0d9d6f6ae6df501119d56f17989717d47f96bed
--- /dev/null
+++ b/LayoutTests/css3/device-adapt/viewport-user-agent-style.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>@viewport user agent stylesheet</title>
+ <script src="../../resources/testharness.js"></script>
+ <script src="../../resources/testharnessreport.js"></script>
+ <script>
+ if (window.testRunner) {
+ testRunner.enableFixedLayoutMode(true);
+ internals.settings.setViewportEnabled(true);
+ }
+ </script>
+ <style>
+ html, body { width: 100%; height: 100%; margin: 0 }
+ </style>
+</head>
+<body>
+ <div id="log"></div>
+ <script>
+ test(function(){
+ assert_equals(document.body.offsetWidth, 980);
+ }, "Check that we get a viewport width of 980px from the user agent stylesheet.");
+ </script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/css3/device-adapt/viewport-user-agent-style-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698