<!DOCTYPE html> <html> <head> <title>overflow-x:hidden on viewport</title> </head> <body style="overflow-x:hidden;"> <p>The viewport should have a vertical scrollbar, no horizontal scrollbar.</p> <div style="width:300vw; height:300vh;"></div> </body> </html>