-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
We have a customer that is loading CSS via:
<link rel="stylesheet" href="..." crossorigin />
When we record, what happens is:
- serialize
<link>element, (stylesheet is not loaded in document yet, so this code does not run) - stylesheet gets loaded
serializeElementNodeis called again, this time there is css that is written to_cssTextattribute (relandhrefattrs are deleted)- This is recorded as a mutation to the original
linkelement
- This is recorded as a mutation to the original
During playback:
- The
<link>is added to DOM with origin attributes - Browser blocks access to CSS file due to CORS
- Mutation occurs with
_cssText - Styles in
_cssTextare not loaded into DOM
This results in a replay without any CSS loaded.