Page MenuHomePhabricator

page library: allow clients to adjust text size
Closed, ResolvedPublic


When native clients load articles via mobile-html, they need to be able to adjust the font size.

Proposed solution
Provide a function to set a text size adjustment percentage:

This is currently mainly needed by the iOS app. iOS currently sets -webkit-text-size-adjust to a percentage value, e.g. 100% as a style of the body element. We should probably also consider setting text-size-adjust as well.

from iOS code:['-webkit-text-size-adjust'] = textSize

This is the lower level transformation in the page library. A similar function should be exposed in the abstraction layer, but with a callback.
We should also consider adding an input field for the text size adjustment to the AllTransforms demo.

Event Timeline

bearND renamed this task from mobile-html: allow clients to adjust text size to page library: allow clients to adjust text size.May 7 2019, 6:41 PM
bearND triaged this task as High priority.
bearND updated the task description. (Show Details)