Skip to content

Commit

Permalink
Address video inlining canvas not having correct styles applied
Browse files Browse the repository at this point in the history
Closes SUP-76
  • Loading branch information
Vadman97 committed Oct 1, 2024
1 parent f54331d commit d42952a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/rrweb-snapshot/src/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,7 @@ function serializeElementNode(
if (video.src === '' || video.src.indexOf('blob:') !== -1) {
const { width, height } = n.getBoundingClientRect();
attributes = {
...attributes,
width,
height,
rr_width: `${width}px`,
Expand Down

0 comments on commit d42952a

Please sign in to comment.