streetsign icon indicating copy to clipboard operation
streetsign copied to clipboard

font size fix for webkit browsers

Open daniel-lang opened this issue 4 years ago • 1 comments

For some unknown reason, external webpages shown in an iframe are moved up because of the dynamically calculated font size. This seems to only affect iframes and only Webkit based browsers (safari, epiphany,...). The fix for this to add an extra class to the container for the iframe which resets the font size to zero. Testing showed that it does not affect other engines or post types.

Screenshot before image This https://streetsign.readthedocs.io/ running in Epiphany 3.28.6

Screenshot after image

daniel-lang avatar May 16 '20 09:05 daniel-lang

Coverage Status

Coverage remained the same at 75.997% when pulling cd586d73e92294e686f1327ecd74ade12c6a984e on daniel-lang:fontsize into 883a1888ba6f6c657b3b5dc88131b147534ba399 on danthedeckie:master.

coveralls avatar May 16 '20 09:05 coveralls