1 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
2 | <head> |
---|
3 | <title>Box Handler Quirks Mode Test</title> |
---|
4 | <link rel="stylesheet" href="../../theme/default/style.css" type="text/css" /> |
---|
5 | <link rel="stylesheet" href="../../examples/style.css" type="text/css" /> |
---|
6 | <style type="text/css"> |
---|
7 | /* simulate quirks mode (traditional box model) in browsers other than IE */ |
---|
8 | div { |
---|
9 | box-sizing: border-box; |
---|
10 | -moz-box-sizing: border-box; |
---|
11 | -ms-box-sizing: border-box; |
---|
12 | -webkit-box-sizing: border-box; |
---|
13 | } |
---|
14 | |
---|
15 | .olHandlerBoxZoomBox { |
---|
16 | border: 20px solid red; |
---|
17 | border-left-width: 10px; |
---|
18 | border-bottom-width: 30px; |
---|
19 | } |
---|
20 | </style> |
---|
21 | <script src="../../lib/OpenLayers.js"></script> |
---|
22 | <script type="text/javascript"> |
---|
23 | var map, layer; |
---|
24 | function init(){ |
---|
25 | map = new OpenLayers.Map( 'map' ); |
---|
26 | layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", |
---|
27 | "http://vmap0.tiles.osgeo.org/wms/vmap0", |
---|
28 | {layers: 'basic'} ); |
---|
29 | map.addLayer(layer); |
---|
30 | map.zoomToMaxExtent(); |
---|
31 | } |
---|
32 | </script> |
---|
33 | </head> |
---|
34 | <body onload="init()"> |
---|
35 | <h1 id="title">Box handler Quirks Mode Test</h1> |
---|
36 | |
---|
37 | <div id="shortdesc">Test the correct appearance of the ZoomBox in quirks mode</div> |
---|
38 | |
---|
39 | <div id="map" class="smallmap"></div> |
---|
40 | |
---|
41 | <div id="docs"> |
---|
42 | <p>For the box to be positioned correctly, we need to know the |
---|
43 | width of the borders.</p> |
---|
44 | <p>Shift-click on the map. A red box should be visible around the mouse |
---|
45 | cursor position, with 20 pixels to the top and right, 10 pixels to |
---|
46 | the left and 30 pixels to the bottom edge of the box.</p> |
---|
47 | <p>Drag the box both to the top-left and the bottom-right. The cursor |
---|
48 | should always be at the top-left or bottom-right inner corner of |
---|
49 | the box.</p> |
---|
50 | </div> |
---|
51 | </body> |
---|
52 | </html> |
---|