Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / Source / web / tests / data / device_emulation.html
blobc96394a05de7e6ed6d7be93c009790efcb986b3b
1 <html>
2 <head>
3 <style>
4 body {
5 margin: 0;
6 min-height: 1000px;
8 #test {
9 width: 100px;
10 height: 100px;
12 @media all and (device-width:700px)
14 #test { width: 300px; }
16 @media all and (max-device-width:699px)
18 #test { width: 200px; }
20 @media all and (min-device-width:701px)
22 #test { width: 400px; }
24 @media all and (device-height:500px)
26 #test { height: 300px; }
28 @media all and (max-device-height:499px)
30 #test { height: 200px; }
32 @media all and (min-device-height:501px)
34 #test { height: 400px; }
36 #pointer {
37 width: 10px;
38 height: 10px;
40 @media all and (pointer: coarse)
42 #pointer { height: 20px; }
44 @media all and (hover: on-demand)
46 #pointer { width: 20px; }
48 </style>
50 <script>
51 function dumpSize(id)
53 var div = document.querySelector("#" + id);
54 return div.offsetWidth + "x" + div.offsetHeight;
56 </script>
57 </head>
58 <body>
59 <div id="test"></div>
60 <div id="pointer"></div>
61 </body>
62 </html>