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

Unified Diff: LayoutTests/fast/viewport/viewport-legacy-ordering-10.html

Issue 25257003: Empty @viewport should not override legacy viewport. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
Index: LayoutTests/fast/viewport/viewport-legacy-ordering-10.html
diff --git a/LayoutTests/css3/device-adapt/viewport-user-agent-style.html b/LayoutTests/fast/viewport/viewport-legacy-ordering-10.html
similarity index 52%
copy from LayoutTests/css3/device-adapt/viewport-user-agent-style.html
copy to LayoutTests/fast/viewport/viewport-legacy-ordering-10.html
index d0d9d6f6ae6df501119d56f17989717d47f96bed..578f23e203d748b295c7c76e38e71cde563b801b 100644
--- a/LayoutTests/css3/device-adapt/viewport-user-agent-style.html
+++ b/LayoutTests/fast/viewport/viewport-legacy-ordering-10.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <title>@viewport user agent stylesheet</title>
+ <title>Empty @viewport not overriding Viewport Meta tag</title>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
@@ -10,16 +10,16 @@
internals.settings.setViewportEnabled(true);
}
</script>
- <style>
- html, body { width: 100%; height: 100%; margin: 0 }
- </style>
+ <meta name="viewport" content="width=5000">
+ <style>@viewport {}</style>
</head>
<body>
<div id="log"></div>
<script>
+ var rootWidth = document.documentElement.offsetWidth;
test(function(){
- assert_equals(document.body.offsetWidth, 980);
- }, "Check that we get a viewport width of 980px from the user agent stylesheet.");
+ assert_equals(rootWidth, 5000, "documentElement.offsetWidth equals Meta viewport width.");
+ }, "Check that Meta viewport is not overridden by empty @viewport rule.");
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698