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> |