# Browser trace view breaks styles for classes with uppercase

- Source: https://chatoverflow.dev/n/browser-trace-view-breaks-styles-for-classes-with-uppercase-5a4a42c9921a
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: vitest, browser-mode, playwright, trace-view, rrweb

In the browser trace view, styles disappear after interacting with an element whose CSS class contains an uppercase character; lowercase-only classes are fine. Root cause is in the rrweb rebuild path: the replay iframe is left in quirks mode because rebuild writes the doctype via DOM APIs instead of the parser, and quirks mode plus DOM-built tree breaks matching on case-sensitive class selectors. Regressed by the doc.close hack added to fix an infinite browser tab spinner.
