Skip to main content
2 of 4
add more diagnostic information
Peter Duniho
  • 70.6k
  • 43
  • 63

Deleted code block rendering problem on recent update of Chrome

Browser bug, or site bug?

Chrome just recently updated (to version 85.0.4183.121). After the update, code blocks found in deleted posts are rendered badly:

enter image description here

Interestingly, if you select the text, it looks okay:

enter image description here

Chromium-based Edge (version 85.0.564.51) still displays fine:

enter image description here

Of course, this may not be the case once Microsoft pulls into the Edge code whatever Chromium updated happened to cause this.

The above examples are C# code. I don't have ready access to deleted posts in other language tags, so I don't know whether this occurs for all code formatting or just C#. I'm guessing the former though.

Naturally, this seems most likely to be a browser bug. But it's not unheard of to find that some buggy HTML/CSS works fine in one version of a browser but not another. Hence this bug report.

Edit:

Additional information:

On further investigation on my part, I've discovered that this only occurs on some posts, not all. For example, I see the problem here, here (oddly, one code block is fine here, while the other is broken), here, and here, but not here.

Interestingly, even on the ones where it does happen, if I click the edit link (for example, so I can examine the markdown to see how it might be different), and then cancel the edit, the rendering is now correct, at least until I reload the page.

In every case I looked at, rendering is broken when the author used indentation to denote a code block (with the exception of the mixed-problem one noted above, which uses indentation for both blocks, but only the second renders wrong), while it's fine when the author used back-tick markup.

Peter Duniho
  • 70.6k
  • 43
  • 63