diff --git a/packages/rrweb/src/record/mutation.ts b/packages/rrweb/src/record/mutation.ts index be6fe19b9d..924c58cd2c 100644 --- a/packages/rrweb/src/record/mutation.ts +++ b/packages/rrweb/src/record/mutation.ts @@ -504,10 +504,7 @@ export default class MutationBuffer { } } for (const pname of Array.from(old.style)) { - if ( - target.style.getPropertyValue(pname) === '' || - !target.style.getPropertyValue(pname) // covering potential non-standard browsers - ) { + if (target.style.getPropertyValue(pname) === '') { // "if not set, returns the empty string" styleObj[pname] = false; // delete } }