OLD | NEW |
1 <head> | 1 <head> |
2 <title>Viewports Merge Quirk.</title> | 2 <title>Viewports Merge Quirk.</title> |
3 <script> | |
4 // This quirk allows content attributes of meta viewport tags to be merg
ed. | |
5 if (window.internals) | |
6 internals.settings.setViewportMetaMergeContentQuirk(true); | |
7 </script> | |
8 <!-- | 3 <!-- |
9 Meta viewport tags still has priority over other legacy meta types, | 4 Meta viewport tags still has priority over other legacy meta types, |
10 but when having multiple meta viewport tags, unspecified content | 5 but when having multiple meta viewport tags, unspecified content |
11 attributes must not take over existing attribute values from previous | 6 attributes must not take over existing attribute values from previous |
12 meta viewport tags. | 7 meta viewport tags. |
13 --> | 8 --> |
14 <meta name="HandheldFriendly" content="true"> | 9 <meta name="HandheldFriendly" content="true"> |
15 <meta name="viewport" content="width=640"> | 10 <meta name="viewport" content="width=640"> |
16 <meta name="viewport" content="initial-scale=1.0"> | 11 <meta name="viewport" content="initial-scale=1.0"> |
17 <meta name="viewport" content="user-scalable=0"> | 12 <meta name="viewport" content="user-scalable=0"> |
18 <!-- The previous 3 meta viewport tags must be equivalent to | 13 <!-- The previous 3 meta viewport tags must be equivalent to |
19 <meta name="viewport" content="width=640,initial-scale=1.0,user-scalable=
0"> | 14 <meta name="viewport" content="width=640,initial-scale=1.0,user-scalable=
0"> |
20 --> | 15 --> |
21 <meta name="MobileOptimized" content="176"> | 16 <meta name="MobileOptimized" content="176"> |
22 <script> | |
23 function test() { | |
24 if (window.testRunner) { | |
25 testRunner.dumpAsText(); | |
26 alert(internals.viewportAsText(document, 1, 320, 352)); | |
27 } | |
28 } | |
29 </script> | |
30 </head> | 17 </head> |
31 <body onload="test();"> | 18 <body></body> |
OLD | NEW |