Skip to content

Commit

Permalink
fix: fix error image use transfrom rotate style (Update stacking-cont…
Browse files Browse the repository at this point in the history
…ext.ts ) #3153
  • Loading branch information
yorickshan committed Jul 8, 2024
1 parent f2ae901 commit 2d9ee18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/stacking-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export class ElementPaint {
while (parent) {
const croplessEffects = parent.effects.filter((effect) => !isClipEffect(effect));
if (inFlow || parent.container.styles.position !== POSITION.STATIC || !parent.parent) {
effects.unshift(...croplessEffects);
inFlow = [POSITION.ABSOLUTE, POSITION.FIXED].indexOf(parent.container.styles.position) === -1;
if (parent.container.styles.overflowX !== OVERFLOW.VISIBLE) {
const borderBox = calculateBorderBoxPath(parent.curves);
Expand All @@ -81,6 +80,7 @@ export class ElementPaint {
);
}
}
effects.unshift(...croplessEffects);
} else {
effects.unshift(...croplessEffects);
}
Expand Down

0 comments on commit 2d9ee18

Please sign in to comment.