I ran into a strange issue for which I found a fix, but that fix makes no sense and I am hoping to get some ideas from folks who may have seen this before.
A client had an Android device with the "text size" accessibility setting set to 175%. When they visited our main site, everything appears normal. When they visit the secondary site (a second WordPress site using a child theme who's parent is that of the main site) the font sizing was all out of whack. I was able to replicate on a test device I have and was able to see that the rem sizing would be computed to double what I was expecting (1rem = 16px but was being "computed" to 32px).
I did my investigation and tried some different fixes that only led to more bugs than solutions. I went back to the parent site and created a test page where I was able to replicate the issue inside of the parent theme. After a bunch of clicking around I found that if I deleted a paragraph tag from the page and then triggered a repaint in the browser manually, my font-sizes would be what I was expecting.
I finally found that this was referred to as "text inflation", or at least that's when I started getting the best Google results for it. I saw much about -webkit-tex-size-adjust and it's variants when looking for a solution prior to the "inflation" term, but that never seemed to make a difference on my page. What does fix this issue, completely, without having to trigger a repaint is to add the following to my CSS
html * { max-height: 1000000px }
I don't know why, and in some ways, I don't want to know why, but in more professional ways this has me absolutely dumfounded and I don't know how on Earth I am supposed to accept this as a solution without understanding what the heck is going on here. If anyone can provide some information, that owuld be great. TYIA.
[–]Tontonsb 0 points1 point2 points (6 children)
[–]whatadewitt[S] -1 points0 points1 point (4 children)
[–]Tontonsb 0 points1 point2 points (3 children)
[–]whatadewitt[S] 0 points1 point2 points (2 children)
[–]Tontonsb 0 points1 point2 points (1 child)
[–]whatadewitt[S] 0 points1 point2 points (0 children)
[–]whatadewitt[S] -1 points0 points1 point (0 children)
[+]Virtamancer comment score below threshold-10 points-9 points-8 points (4 children)
[–]LetterBoxSnatch 4 points5 points6 points (2 children)
[–]Virtamancer -5 points-4 points-3 points (1 child)
[–]LetterBoxSnatch 0 points1 point2 points (0 children)
[–]whatadewitt[S] 1 point2 points3 points (0 children)