Skip to content

🎥 Make videos programmatically with React

fix fixture

JonnyBurger8f598ed847f1
diff --git a/packages/web-renderer/src/test/__screenshots__/background-clip.test.tsx/background-clip-text-chromium-darwin.png b/packages/web-renderer/src/test/__screenshots__/background-clip.test.tsx/background-clip-text-chromium-darwin.png
index 7f42da95b3..36b37ced4b 100644
Binary files a/packages/web-renderer/src/test/__screenshots__/background-clip.test.tsx/background-clip-text-chromium-darwin.png and b/packages/web-renderer/src/test/__screenshots__/background-clip.test.tsx/background-clip-text-chromium-darwin.png differ
diff --git a/packages/web-renderer/src/test/__screenshots__/background-clip.test.tsx/background-clip-text-firefox-darwin.png b/packages/web-renderer/src/test/__screenshots__/background-clip.test.tsx/background-clip-text-firefox-darwin.png
index 515c0c910b..2e49042ded 100644
Binary files a/packages/web-renderer/src/test/__screenshots__/background-clip.test.tsx/background-clip-text-firefox-darwin.png and b/packages/web-renderer/src/test/__screenshots__/background-clip.test.tsx/background-clip-text-firefox-darwin.png differ
diff --git a/packages/web-renderer/src/test/__screenshots__/background-clip.test.tsx/background-clip-text-webkit-darwin.png b/packages/web-renderer/src/test/__screenshots__/background-clip.test.tsx/background-clip-text-webkit-darwin.png
index 081a275e29..6053d3198e 100644
Binary files a/packages/web-renderer/src/test/__screenshots__/background-clip.test.tsx/background-clip-text-webkit-darwin.png and b/packages/web-renderer/src/test/__screenshots__/background-clip.test.tsx/background-clip-text-webkit-darwin.png differ
diff --git a/packages/web-renderer/src/test/fixtures/text/background-clip-text.tsx b/packages/web-renderer/src/test/fixtures/text/background-clip-text.tsx
index 04bcfef924..a59c78224f 100644
--- a/packages/web-renderer/src/test/fixtures/text/background-clip-text.tsx
+++ b/packages/web-renderer/src/test/fixtures/text/background-clip-text.tsx
@@ -22,6 +22,22 @@ const Component: React.FC = () => {
flexDirection: 'column',
}}
>
+ <p
+ style={{
+ ...baseStyle,
+ backgroundClip: 'border-box',
+ }}
+ >
+ The background extends behind the border.
+ </p>
+ <p
+ style={{
+ ...baseStyle,
+ backgroundClip: 'padding-box',
+ }}
+ >
+ The background extends to the inside edge of the border.
+ </p>
<p
style={{
...baseStyle,
@@ -30,6 +46,16 @@ const Component: React.FC = () => {
>
The background extends only to the edge of the content box.
</p>
+ <p
+ style={{
+ ...baseStyle,
+ backgroundClip: 'text',
+ WebkitBackgroundClip: 'text',
+ color: 'rgba(0, 0, 0, 0.2)',
+ }}
+ >
+ The background is clipped to the foreground text.
+ </p>
</AbsoluteFill>
);
};