[webkit-dev] Default viewport value on WAP DTDs

Alexey Proskuryakov ap at webkit.org
Fri May 4 09:01:50 PDT 2012


03.05.2012, в 13:46, Hugo Parente Lima написал(а):

> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" 
> "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
> 
> The proposed patch changes the magic value of 980 pixels to "device-width" 
> when this doctype is found causing the website to render nicely if the device 
> screen is small, i.e. don't show the website in a 980 pixels canvas zoomed out 
> to fit the <980 pixels screen.
> 
> Some webkit browsers already use this hack, like the N9 browser and if I 
> understood correctly by the Zalan comments on the bug, the iOS Safari too.

I think that introduction of new doctype based modes should go through HTML5 first - if WebKit needs this, then other browsers need it, too.

Also, it's not clear what the distinction between mobile and non-mobile is. Is Safari on an 11" MacBook Air a mobile browser?

- WBR, Alexey Proskuryakov



More information about the webkit-dev mailing list