xrdwb17xu: Hide native video controls until play and move the author aside while a slide video plays

This commit is contained in:
2026-10-20 08:24:45 -06:00
parent bf5e0ed475
commit adcd0cfd96
4 changed files with 38 additions and 5 deletions
+10
View File
@@ -119,3 +119,13 @@ describe("one step per gesture", () => {
expect(stepTarget(2, 0, 5)).toBe(2);
});
});
describe("video slide before play", () => {
it("shows only the frosted play button, no native controls", () => {
const html = render({});
const video = /<video[^>]*>/.exec(html)?.[0] ?? "";
expect(video).not.toBe("");
expect(video).not.toContain("controls");
expect(html).toContain('class="post-play slide-play"');
});
});