File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -309,8 +309,11 @@ function serializeNode(
309
309
}
310
310
if ( needBlock ) {
311
311
const { width, height } = ( n as HTMLElement ) . getBoundingClientRect ( ) ;
312
- attributes . rr_width = `${ width } px` ;
313
- attributes . rr_height = `${ height } px` ;
312
+ attributes = {
313
+ class : attributes . class ,
314
+ rr_width : `${ width } px` ,
315
+ rr_height : `${ height } px` ,
316
+ } ;
314
317
}
315
318
return {
316
319
type : NodeType . Element ,
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ exports[`[html file]: block-element.html 1`] = `
70
70
<div class =\\"rr-block big\\" style =\\"width: 50px; height: 50px;\\"></div>
71
71
<div>record 2</div>
72
72
<div class =\\"rr-block small\\" style =\\"width: 50px; height: 100px;\\"></div>
73
- <div class =\\"rr-block\\" style =\\"height: 200px; width: 100px \\"></div>
73
+ <div class =\\"rr-block\\" style =\\"width: 100px; height: 200px; \\"></div>
74
74
</body></html>"
75
75
`;
76
76
You can’t perform that action at this time.
0 commit comments