Skip to content

Commit 8f80d2a

Browse files
committed
fix(css): exclude zoom from style snapshot to prevent double-zoom inside foreignObject (#369)
1 parent ccaf138 commit 8f80d2a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/utils/css.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ const NO_PAINT_EXACT = new Set([
113113
'container-name',
114114
'container-type',
115115
'timeline-scope',
116+
// #369: CSS zoom — getComputedStyle() widths/heights already reflect post-zoom layout values.
117+
// Capturing zoom in the class causes double-zoom inside SVG foreignObject → blank sections.
118+
// Excluding zoom prevents this; dimensions are already correct as-is.
119+
'zoom',
116120
])
117121

118122
/**

0 commit comments

Comments
 (0)