-webkit-text-size-adjust 不适用于 iPad OS 13

-webkit-text-size-adjust not working on iPad OS 13

<!DOCTYPE html>
        <html>
            <body>
                <div style="-webkit-text-size-adjust: 56.2962293624878%;">
                    Sample text sample text sample text
                </div>
                <div style="-webkit-text-size-adjust: 156.2962293624878%;">
                    Sample text sample text sample text
                </div>
                <div style="-webkit-text-size-adjust: 356.2962293624878%;">
                    Sample text sample text sample text
                </div>
            </body>
        </html>

https://bugs.webkit.org/show_bug.cgi?id=201404, -webkit-text-size-adjust is not working on iPad running iOS 13. Any idea what can be used as a replacement for this? I'm using webkit-text-size-adjust to handle dynamic types (1 中所述。

WebKit 已修复该问题。参见 - https://bugs.webkit.org/show_bug.cgi?id=212122.

注意preferredContentMode应该设置为WKContentMobile -> webViewConfiguration.defaultWebpagePreferences.preferredContentMode = WKContentModeMobile