Skip to content

🎥 Make videos programmatically with React

Fix checkerboard bleeding at canvas edges

JonnyBurger806b0c854c8d
diff --git a/packages/studio/src/components/Preview.tsx b/packages/studio/src/components/Preview.tsx
index b0666e1d72..275d96775c 100644
--- a/packages/studio/src/components/Preview.tsx
+++ b/packages/studio/src/components/Preview.tsx
@@ -66,6 +66,9 @@ const containerStyle = (options: {
}): React.CSSProperties => {
return {
transform: `scale(${options.scale})`,
+ // Avoid the background bleeding through opaque compositions at fractional
+ // scales due to Chromium compositing the child and background together.
+ willChange: 'transform',
marginLeft: options.xCorrection,
marginTop: options.yCorrection,
width: options.width,