Cross-Browser Compatibility: My Website Animation, Part 2

Digging into yesterday’s problem more I found references to a procedure called font boosting, and a number of ways to potentially control it or turn it off. Font boosting has to do with making the text larger by default on certain mobile devices in certain situations.

I put together a simple test page I could use to easily see the effects of different changes and clearly verify which CSS was in effect.

The suggestions from this page didn’t seem to work. The main suggestion from this page is to set max-height or min-height parameters to very large or very small values (e.g., 999999px or 1px, respectively) as a way to short circuit the font boosting.

This suggestion didn’t appear to work, either. The remote debugger shows the 16px font size and the -webkit-text-size-adjust lines are properly in effect.

I considered writing some JavaScript to test for Android and then apply a multiplier to make the relevant text items smaller, but a review of the sizing commands I use show that any type of multiplier I might use would tend to be inconsistent. It would merely override whatever multiplier was already in place. The workaround for that would be to set the relative text size of every text element using an individual font-size command, and then apply a universal multiplier in em or percent to do a universal scaling. That would work, but seems to represent a nuclear option. I’d really like to find a better solution. (An even more nuclear option, fusion instead of fission, perhaps, is to punt the opening animation altogether.)

Another thing that confuses this whole effort is the fact that users can set the default size of text larger or smaller than the standard, which would probably obviate this whole discussion anyway. Hmm, maybe the nuclear option is the way to go. This is particularly true in light of the fact that I’ve been thinking of redoing the landing page into more of a copywritten story format, rather than being mostly a rehash of the Roles page. We shall see.

This entry was posted in Software and tagged , , , . Bookmark the permalink.

Leave a Reply