Skip to content

Commit f5dcde1

Browse files
committed
fix(test): use CSS-colored divs in parity fixture to eliminate media decode variance
<img>/<video> elements decode through platform-specific YUV/YCbCr pipelines (GPU on macOS, software on Linux CI), producing YAVG ~17-18 even for solid- color content. CSS background colors are rendered identically on all platforms.
1 parent 5c02b87 commit f5dcde1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/studio/e2e/studio-parity.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const PRISTINE_INDEX_HTML = `<!doctype html>
6161
right: 200px;
6262
width: 400px;
6363
height: 300px;
64-
object-fit: cover;
64+
background: #3b82f6;
6565
}
6666
6767
#clip {
@@ -70,7 +70,7 @@ const PRISTINE_INDEX_HTML = `<!doctype html>
7070
left: 200px;
7171
width: 600px;
7272
height: 338px;
73-
object-fit: cover;
73+
background: #5e81ac;
7474
}
7575
</style>
7676
</head>
@@ -85,8 +85,8 @@ const PRISTINE_INDEX_HTML = `<!doctype html>
8585
data-start="0"
8686
>
8787
<p id="title" class="clip" data-start="0" data-duration="3">Hello Parity</p>
88-
<img id="photo" class="clip" src="assets/photo.jpg" data-start="0" data-duration="3" alt="" />
89-
<video id="clip" class="clip" src="assets/clip.mp4" data-start="0" data-duration="3" muted></video>
88+
<div id="photo" class="clip" data-start="0" data-duration="3"></div>
89+
<div id="clip" class="clip" data-start="0" data-duration="3"></div>
9090
</div>
9191
</body>
9292
</html>

0 commit comments

Comments
 (0)