🎥 Make videos programmatically with React
fix all problems
JonnyBurgerf9661ca18ac6
diff --git a/packages/docs/docs/client-side-rendering/limitations.mdx b/packages/docs/docs/client-side-rendering/limitations.mdxindex e9965f349e..744dea26bd 100644--- a/packages/docs/docs/client-side-rendering/limitations.mdx+++ b/packages/docs/docs/client-side-rendering/limitations.mdx@@ -30,9 +30,9 @@ The CSS `transform` property is <a style={{color: 'green'}}>supported</a>.The `transform-origin` property is <a style={{color: 'green'}}>supported</a>.The `opacity` property is <a style={{color: 'green'}}>supported</a>.The `scale`, `rotate` and `translate` transformations are <a style={{color: 'green'}}>supported</a>.-The `perspective` property is <a style={{color: 'red'}}>not supported</a>.-The `perspective-origin` property is <a style={{color: 'red'}}>not supported</a>.-The `transform-style` property is <a style={{color: 'red'}}>not supported</a> (defaults to `preserve-3d`, default in CSS is "flat").+The `perspective` property is <a style={{color: 'red'}}>not supported</a>.+The `perspective-origin` property is <a style={{color: 'red'}}>not supported</a>.+The `transform-style` property is <a style={{color: 'red'}}>not supported</a> (defaults to `preserve-3d`, default in CSS is "flat").The `backface-visibility` property is <a style={{color: 'green'}}>supported</a>.### Backgroundsdiff --git a/packages/web-renderer/src/drawing/process-node.ts b/packages/web-renderer/src/drawing/process-node.tsindex 3bd65fe6d1..49d1eb1c8a 100644--- a/packages/web-renderer/src/drawing/process-node.ts+++ b/packages/web-renderer/src/drawing/process-node.ts@@ -55,10 +55,7 @@ export const processNode = async ({// When backfaceVisibility is 'hidden', don't render if the element is rotated// to show its backface. The backface is visible when the z-component of the// transformed normal vector (0, 0, 1) is negative, which corresponds to m33 < 0.- if (- computedStyle.backfaceVisibility === 'hidden' &&- totalMatrix.m33 < 0- ) {+ if (computedStyle.backfaceVisibility === 'hidden' && totalMatrix.m33 < 0) {reset();return {type: 'skip-children'};}diff --git a/packages/web-renderer/src/test/backface-visibility-mask.test.tsx b/packages/web-renderer/src/test/backface-visibility-mask.test.tsxindex 092ab25e73..cb5069118c 100644--- a/packages/web-renderer/src/test/backface-visibility-mask.test.tsx+++ b/packages/web-renderer/src/test/backface-visibility-mask.test.tsx@@ -14,5 +14,5 @@ test('should render backface-visibility with mask-image', async () => {imageFormat: 'png',});- await testImage({blob, testId: 'backface-visibility-mask', threshold: 0.02});+ await testImage({blob, testId: 'backface-visibility-mask', threshold: 0.03});});