(w: number, h: number)
| 426 | // Dims must be read the same way the producer's compiler reads them: |
| 427 | // `data-width` / `data-height` on the `[data-composition-id]` root. |
| 428 | const comp = (w: number, h: number) => |
| 429 | `<html><body><div data-composition-id="root" data-width="${w}" data-height="${h}"></div></body></html>`; |
| 430 | const portraitHtml = comp(1080, 1920); |
| 431 | const landscapeHtml = comp(1920, 1080); |
| 432 | const noModes = { alphaRequested: false, hdrRequested: false } as const; |