<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <script> function boom() { window.getComputedStyle(document.documentElement, ":foo"); } </script> </head> <body onload="boom();"></body> </html>