Skip to content

Commit

Permalink
Merge pull request #14 from yorickshan/fix/3153
Browse files Browse the repository at this point in the history
fix: fix error image use transfrom rotate style (Update stacking-cont…
  • Loading branch information
yorickshan authored Jul 8, 2024
2 parents f2ae901 + 2d9ee18 commit bb6c6e8
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 bb6c6e8

Please sign in to comment.