<!DOCTYPE html> <svg> <style> div { } </style> </svg> <script> document.styleSheets[0].cssRules[0].style.foo = document; </script>