diff --git a/packages/rrweb/test/__snapshots__/integration.test.ts.snap b/packages/rrweb/test/__snapshots__/integration.test.ts.snap index d21880e706..41618fdc00 100644 --- a/packages/rrweb/test/__snapshots__/integration.test.ts.snap +++ b/packages/rrweb/test/__snapshots__/integration.test.ts.snap @@ -5526,12 +5526,13 @@ exports[`record integration tests mutations should work when blocked class is un { \\"type\\": 2, \\"tagName\\": \\"style\\", - \\"attributes\\": {}, + \\"attributes\\": { + \\"_cssText\\": \\"#b-class, #b-class-2 { height: 33px; width: 200px; }\\" + }, \\"childNodes\\": [ { \\"type\\": 3, - \\"textContent\\": \\"#b-class, #b-class-2 { height: 33px; width: 200px; }\\", - \\"isStyle\\": true, + \\"textContent\\": \\"\\", \\"id\\": 9 } ], @@ -8422,12 +8423,13 @@ exports[`record integration tests should nest record iframe 1`] = ` { \\"type\\": 2, \\"tagName\\": \\"style\\", - \\"attributes\\": {}, + \\"attributes\\": { + \\"_cssText\\": \\"iframe { width: 500px; height: 500px; }\\" + }, \\"childNodes\\": [ { \\"type\\": 3, - \\"textContent\\": \\"iframe { width: 500px; height: 500px; }\\", - \\"isStyle\\": true, + \\"textContent\\": \\"\\", \\"id\\": 14 } ], @@ -12470,7 +12472,6 @@ exports[`record integration tests should record dynamic CSS changes 1`] = ` { \\"type\\": 3, \\"textContent\\": \\"\\", - \\"isStyle\\": true, \\"id\\": 18 } ], @@ -15840,12 +15841,13 @@ exports[`record integration tests should record shadow DOM 1`] = ` { \\"type\\": 2, \\"tagName\\": \\"style\\", - \\"attributes\\": {}, + \\"attributes\\": { + \\"_cssText\\": \\".my-element { margin: 0px 0px 1rem; }iframe { border: 0px; width: 100%; padding: 0px; }body { max-width: 400px; margin: 1rem auto; padding: 0px 1rem; font-family: \\\\\\"comic sans ms\\\\\\"; }\\" + }, \\"childNodes\\": [ { \\"type\\": 3, - \\"textContent\\": \\".my-element { margin: 0px 0px 1rem; }iframe { border: 0px; width: 100%; padding: 0px; }body { max-width: 400px; margin: 1rem auto; padding: 0px 1rem; font-family: \\\\\\"comic sans ms\\\\\\"; }\\", - \\"isStyle\\": true, + \\"textContent\\": \\"\\", \\"id\\": 14 } ], @@ -15923,12 +15925,13 @@ exports[`record integration tests should record shadow DOM 1`] = ` { \\"type\\": 2, \\"tagName\\": \\"style\\", - \\"attributes\\": {}, + \\"attributes\\": { + \\"_cssText\\": \\"body { margin: 0px; }p { border: 1px solid rgb(204, 204, 204); padding: 1rem; color: red; font-family: sans-serif; }\\" + }, \\"childNodes\\": [ { \\"type\\": 3, - \\"textContent\\": \\"body { margin: 0px; }p { border: 1px solid rgb(204, 204, 204); padding: 1rem; color: red; font-family: sans-serif; }\\", - \\"isStyle\\": true, + \\"textContent\\": \\"\\", \\"id\\": 28 } ], diff --git a/packages/rrweb/test/__snapshots__/record.test.ts.snap b/packages/rrweb/test/__snapshots__/record.test.ts.snap index cb40f3328d..ad461ec500 100644 --- a/packages/rrweb/test/__snapshots__/record.test.ts.snap +++ b/packages/rrweb/test/__snapshots__/record.test.ts.snap @@ -1386,18 +1386,19 @@ exports[`record captures inserted style text nodes correctly 1`] = ` { \\"type\\": 2, \\"tagName\\": \\"style\\", - \\"attributes\\": {}, + \\"attributes\\": { + \\"_cssText\\": \\"div { color: red; }section { color: blue; }\\", + \\"_cssTextSplits\\": \\"19\\" + }, \\"childNodes\\": [ { \\"type\\": 3, - \\"textContent\\": \\"div { color: red; }\\", - \\"isStyle\\": true, + \\"textContent\\": \\"\\", \\"id\\": 6 }, { \\"type\\": 3, - \\"textContent\\": \\"section { color: blue; }\\", - \\"isStyle\\": true, + \\"textContent\\": \\"\\", \\"id\\": 7 } ], @@ -1460,7 +1461,6 @@ exports[`record captures inserted style text nodes correctly 1`] = ` \\"node\\": { \\"type\\": 3, \\"textContent\\": \\"h1 { color: pink; }\\", - \\"isStyle\\": true, \\"id\\": 12 } }, @@ -1470,7 +1470,6 @@ exports[`record captures inserted style text nodes correctly 1`] = ` \\"node\\": { \\"type\\": 3, \\"textContent\\": \\"span { color: orange; }\\", - \\"isStyle\\": true, \\"id\\": 13 } }