w3c / csswg-drafts

CSS Working Group Editor Drafts
https://drafts.csswg.org/
Other
4.5k stars 661 forks source link

[css-device-adapt] meta name="disable-adaptations" #2750

Open eeeps opened 6 years ago

eeeps commented 6 years ago

According to https://developer.apple.com/videos/play/wwdc2018/239/, WebKit on watchOS 5 will override meta-name="viewport" content="width=X, initial-scale=Y" declarations, and present with a 320px-wide viewport (initial-scale=0.49) unless you say some new, magic words:

<meta name="disable-adaptations" content="watch">

With that, the watch presents using its actual, native, 156px-wide viewport.

According to the spec, new name values should be registered on the WHATWG wiki.

And disable-adaptations should be specified...somewhere. Maybe in CSS Device Adaptation?

Malvoz commented 5 years ago

I just noticed, Apple uses "disabled-adaptations".

zcorpan commented 5 years ago

Also see https://github.com/whatwg/html/issues/2335