<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>Correctly masked page</title> <style> .box { position: relative; width: 220px; height: 220px; } </style> </head> <body> <div class="box" style="background-color: black;"> </div> <div class="box" style="background-color: white;"> </div> </body> </html>