OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <title>Empty @viewport not overriding Viewport Meta tag</title> | |
5 <script src="../../resources/testharness.js"></script> | |
6 <script src="../../resources/testharnessreport.js"></script> | |
7 <script> | |
8 if (window.testRunner) { | |
9 internals.settings.setViewportEnabled(true); | |
10 } | |
11 </script> | |
12 <meta name="viewport" content="width=5000"> | |
13 <style>@viewport {}</style> | |
14 </head> | |
15 <body style="overflow: hidden"> | |
16 <div id="log"></div> | |
17 <script> | |
18 var rootWidth = document.documentElement.offsetWidth; | |
19 test(function(){ | |
20 assert_equals(rootWidth, 5000, "documentElement.offsetWidth equals M
eta viewport width."); | |
21 }, "Check that Meta viewport is not overridden by empty @viewport rule."
); | |
22 </script> | |
23 </body> | |
24 </html> | |
OLD | NEW |