Web Crash Caused by Styles in Chrome

What the bug is

When accessing the web page in Chrome, everything is normal, but the page crashes directly when the developer tools are opened. If the page is refreshed with the developer tools open, it crashes but usually loads and runs when the developer tools are closed.

https://i.imgur.com/FJtPLZ1.jpeg

Version: Chrome v130.0.6723.70. Version v129 usually works.

Code Analysis

Actual tests found that commenting out the following code resolves the issue:

1
::-ms-scrollbar { display: none; }

Solution

Directly switch to using:

1
scrollbar-width: 0;

To Reproduce

Visit the link below to reproduce the issue:

https://alanhe421.github.io/test-page/web-crash.html