Closed wilkinsona closed 3 years ago
Having a hard time replicating this, it looks to be specific to Apple devices (and I don't have any). I did find one font issue that I've pushed a fix for but I'm not convinced it'll solve this one.
It goes wrong in a different way on macOS Safari in responsive design mode.
I'll have a bit of a play with connecting web inspector to my phone and see if I can spot anything.
I thought it was something to do with the <pre>
block not inheriting the font-size
from .doc pre
, but <pre>
blocks with both the correct font size and the wrong font size don't show any styles inherited from .doc pre
. I'm not sure how useful remote web inspector is as it doesn't seem to be showing the right data.
Unfortunately, the latest changes don't seem to have helped. I wondered if the problem was specific to Java code, i.e. blocks with code folding, but that's not the case.
Interestingly the bottom block is Java but doesn't have folding. Perhaps the folding is the problem
Ooh, I'd missed that it didn't have folding. Maybe that is the problem after all. I'll check some more blocks and see if the pattern holds.
Bingo. It doesn't seem to like the nested <span>
elements. That's maybe fair enough as I think <span>
is supposed to be an inline element and they're blocks here. I tried changing the outer <span class="fold-block…">
elements to <div>
s in web inspector and that seems to fix the problem.
I've replicated using the simulator from xcode. The issue is the float:right
on the block which makes Safari think it can zoom the text. See https://stackoverflow.com/questions/20924039/wrong-font-size-when-using-float-right-in-css-on-mobile-safari
The font size used here matches the rest of the text
![IMG_6270](https://user-images.githubusercontent.com/914682/110467143-8c46ca80-80ce-11eb-9caf-f51807b4d2fb.PNG)The font size used here is larger for some reason
![IMG_6269](https://user-images.githubusercontent.com/914682/110467147-8d77f780-80ce-11eb-8e6d-b246d28c82bd.PNG)Expanding the imports results in a mixture of font sizes in the same block
![IMG_6271](https://user-images.githubusercontent.com/914682/110467386-db8cfb00-80ce-11eb-847a-655d2adb25a2.PNG)