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 merge
d. | |
5 if (window.internals) | |
6 internals.settings.setViewportMetaMergeContentQuirk(true); | |
7 </script> | |
8 <!-- | 3 <!-- |
9 When having multiple meta viewport tags, unspecified content | 4 When having multiple meta viewport tags, unspecified content |
10 attributes must not take over existing attribute values from previous | 5 attributes must not take over existing attribute values from previous |
11 meta viewport tags. | 6 meta viewport tags. |
12 --> | 7 --> |
13 <meta name="viewport" content="width=640"> | 8 <meta name="viewport" content="width=640"> |
14 <meta name="viewport" content="initial-scale=1.0"> | 9 <meta name="viewport" content="initial-scale=1.0"> |
15 <meta name="viewport" content="width=500"> | 10 <meta name="viewport" content="width=500"> |
16 <meta name="viewport" content="user-scalable=0"> | 11 <meta name="viewport" content="user-scalable=0"> |
17 <meta name="viewport" content="initial-scale=2.0"> | 12 <meta name="viewport" content="initial-scale=2.0"> |
18 <!-- All the previous meta viewport tags must be equivalent to | 13 <!-- All the previous meta viewport tags must be equivalent to |
19 <meta name="viewport" content="width=500,initial-scale=2.0,user-scalable=
0"> | 14 <meta name="viewport" content="width=500,initial-scale=2.0,user-scalable=
0"> |
20 --> | 15 --> |
21 <script> | |
22 function test() { | |
23 if (window.testRunner) { | |
24 testRunner.dumpAsText(); | |
25 alert(internals.viewportAsText(document, 1, 320, 352)); | |
26 } | |
27 } | |
28 </script> | |
29 </head> | 16 </head> |
30 <body onload="test();"> | 17 <body></body> |
OLD | NEW |