Skip to content

Commit df2dd99

Browse files
committed
fix(inlinePseudoElements): enhance style comparison by including additional CSS properties
1 parent e76d700 commit df2dd99

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

src/modules/pseudo.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,19 @@ export async function inlinePseudoElements(source, clone, sessionCache, options)
422422
const isMeaningful =
423423
style.color !== normal.color ||
424424
style.fontSize !== normal.fontSize ||
425-
style.fontWeight !== normal.fontWeight
425+
style.fontWeight !== normal.fontWeight ||
426+
style.fontFamily !== normal.fontFamily ||
427+
style.fontStyle !== normal.fontStyle ||
428+
style.textTransform !== normal.textTransform ||
429+
style.float !== normal.float ||
430+
style.paddingTop !== normal.paddingTop ||
431+
style.paddingRight !== normal.paddingRight ||
432+
style.paddingBottom !== normal.paddingBottom ||
433+
style.paddingLeft !== normal.paddingLeft ||
434+
style.marginTop !== normal.marginTop ||
435+
style.marginRight !== normal.marginRight ||
436+
style.marginBottom !== normal.marginBottom ||
437+
style.marginLeft !== normal.marginLeft
426438
if (!isMeaningful) continue
427439

428440
const textNode = Array.from(clone.childNodes).find(

0 commit comments

Comments
 (0)