WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
23762
[Regression] Slippy Map div set as percentage is unprintable
https://bugs.webkit.org/show_bug.cgi?id=23762
Summary
[Regression] Slippy Map div set as percentage is unprintable
Shaun McDonald
Reported
2009-02-05 09:15:23 PST
Go to
http://matt.sandbox.cloudmade.com/
for example, try to print. Using the latest Webkit Version 3.2.1 (5525.27.1) you will just get a blank page with no map, whilst the current stable version of Safari will work fine. The problem appears to be the following line: <div style="width:100%; height:100%" id="map"/> setting the width and height to a px value makes the map printable again. Other examples include:
http://johnmckerrell.com/map/
http://shaunmcdonald.me.uk/osm/minute-wml.html
The slippy maps libraries used are OpenLayers, MultiMaps, and CloudMade's WebMapsLite.
Attachments
Add attachment
proposed patch, testcase, etc.
Shaun McDonald
Comment 1
2009-02-05 10:23:14 PST
There is some resize hackery done, such that
http://matt.sandbox.cloudmade.com/
now works. Is this javascript resizing really required?
Jiuqing Song
Comment 2
2009-10-12 20:25:35 PDT
I also hit this bug. My repro is here: <div style="border: solid 2px black; width: 100%; height: 100%"></div> When I print this page on other browsers (IE8, Firefox, Chrome), the border of DIV can fit the paper, but in safari and webkit (4.0.3 5531.9
r49434
), it can only fit horizentally, and the vertical size depends on the size of window on screen.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug