WKWebView style.webkitTextSizeAdjust works on iPhone, but not on iPad

I use WKWebView to display a web page in my app that has custom fonts with hard coded font sizes.

Based on the dynamic type text size specified in the settings app by the user, I want to set a certain zoom level on the web page like this (using WKNavigationDelegate):

- (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation 
{
[webView evaluateJavaScript:@"document.getElementsByTagName('body')[0].style.webkitTextSizeAdjust='120%'" completionHandler:nil];
}

This works just fine on iPhone, but on iPad the zoom level stays at 100%.

Any ideas?

Found it (via https://trac.webkit.org/changeset/261940/webkit) - to force the old iPad behavior set

_webView.configuration.defaultWebpagePreferences.preferredContentMode = WKContentModeMobile;

WKWebView style.webkitTextSizeAdjust works on iPhone, but not on iPad
 
 
Q