[Bug]: Injected styles are cleared when node is added to a `<style>` element
billyvg opened this issue · comments
Preflight Checklist
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
What package is this bug report for?
rrweb
Version
v2.0.0-alpha.13
Expected Behavior
Injected styles (block styles, noscript
) should remain on the document during playback.
Actual Behavior
Injected styles are being lost when we have a mutation that adds a node to a style
element and there is a fast forward event.
Steps to Reproduce
I've wrote up a test case here: #1459
Testcase Gist URL
No response
Additional Information
No response
This sounds like the bug I reported and have a PR up for. #1357