<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=800"> <style> body { width: 800px; margin: 0; overflow-y: hidden; } </style> </head> <body> <div style="font-size: 20px"> This should be scaled by 2.5x to become 20px (since it was small, it got fully multiplied). </div> <div style="font-size: 40px"> This should be scaled by 2.5x to become 40px (since it was small, it got fully multiplied). </div> <div style="font-size: 48px"> This should be scaled by 1.5x to become 48px (since it was medium size, it got multiplied less). </div> <div style="font-size: 56px"> This should be scaled by 1.17x to become 56px (since it was large, it got multiplied much less). </div> <div style="font-size: 64px"> This should not be scaled at all, hence remain 64px (since it was huge, it didn't get multiplied at all). </div> </body> </html>