Summary: | AX: WKWebView should support increasing text size for accessibility | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ali Juma <ajuma> |
Component: | Accessibility | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | Normal | CC: | eugenebut, jcraig, n_wang, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | All | ||
OS: | All |
Description
Ali Juma
2018-06-25 13:13:04 PDT
Standard web text does not not reflect the system font size because not all web views are coded well enough to contain it well. More recently iOS added app-specific font sizes, because the same is true of native apps, not all support dynamic type equivalently. iOS Safari added a domain-specific font size controller in the URL field. For your app, you can either adjust the web content to use the legacy vendor-prefixed CSS keywords (like -apple-system-body) or implement your own font size controller similar to what iOS Safari has done in iOS 13 and later. There's an example of the vendor-prefixed font size keywords in the demo file for reduced motion. View source here: https://webkit.org/blog-files/prefers-reduced-motion/prm.htm html { font: 100% sans-serif; font: -apple-system-body; } body { font-size: 0.8em; line-height: 1.1; } |