Merge origin/main at fb089b2 and retain canvas media performance, player layout, and interaction updates.
Co-authored-by: ddCat <2695092045@qq.com>
16 lines
681 B
TypeScript
16 lines
681 B
TypeScript
import { readFileSync } from "node:fs";
|
|
import { resolve } from "node:path";
|
|
|
|
import { describe, expect, test } from "bun:test";
|
|
|
|
const stylesSource = readFileSync(resolve(import.meta.dir, "../src/styles/globals.css"), "utf8");
|
|
|
|
describe("canvas cross-browser positioning", () => {
|
|
test("uses standard transforms for the committed raster layer", () => {
|
|
const rasterLayer = stylesSource.match(/\.canvas-world-raster-layer\s*\{[\s\S]*?\}/)?.[0] || "";
|
|
expect(rasterLayer).toContain("transform: scale(var(--canvas-committed-scale))");
|
|
expect(rasterLayer).toContain("transform-origin: 0 0");
|
|
expect(rasterLayer).not.toContain("zoom:");
|
|
});
|
|
});
|