naturalcrit / homebrewery

Create authentic looking D&D homebrews using only markdown
https://homebrewery.naturalcrit.com
MIT License
1.03k stars 316 forks source link

Window/Tab freezes on input of H1 header off the "page" (third column or later) - Firefox MacOS #3474

Open Gazook89 opened 1 month ago

Gazook89 commented 1 month ago
Renderer Browser Operating System
v3 Firefox MacOS

What happened?

In Firefox 124.0.1 (64-bit) on MacOS 14.2 (23C64), with a brew that has enough content to spill 'off the page' to the third column or later, adding an H1 header either with markdown syntax or html tags causes the tab/window to freeze. There is no error in the browser console. The cursor stops blinking and the only escape is to close the tab.

This only happens with H1 headers. You can still add other headers, but only if you use the shortcuts Shift Cmd 2 (3, 4, 5, etc) to inject the specific header type.

Modifying the styling of the H1 to remove the column-span property fixes the issue but obviously causes other problems.

.page h1 {
  column-span: unset;
  -moz-column-span: unset;
  -webkit-column-span: unset;
}

This was reported by a user, here is the example brew. Note, the above CSS rule is in the Style Editor, commented out. Try adding an H1 header anywhere after the Dust Storm Results table.

5e-Cleric commented 1 month ago

Updated original post to use a more compact display of details about the testing, if you don't mind.

cclypeatus commented 3 weeks ago

This is also happening to me with a nested unordered list. Only way to escape the freezing is by closing the tab or temporarily by injecting CSS to hide the iframe. Adding a column/page break is a rough fix too since it breaks the desired nesting.

v3 Renderer, Firefox 125.0.3, Ubuntu 22.04.4