Chrome’s Headless mode gets an upgrade: introducing –headless=new
developer.chrome.com
developer.chrome.com
--headless=new in Chrome 112 on the other hand works the way you'd expect.
BTW always have to quote one of your pages whenever it comes to Unicode in JS and stuff like that, so again, thanks for that!