input-checkbox-appearance-none-dynamic-crash.html (314B)
1 <style> 2 input:checked { 3 appearance: none; 4 } 5 input:required { 6 border-bottom-style: groove; 7 } 8 </style> 9 <script> 10 document.addEventListener("DOMContentLoaded", () => { 11 a.getBoundingClientRect(); 12 a.defaultChecked = true; 13 a.getBoundingClientRect(); 14 }) 15 </script> 16 <input id="a" required="required" type="radio">