diff --git a/apps/web/@types/postcss-easings.d.ts b/apps/web/@types/postcss-easings.d.ts deleted file mode 100644 index 95a59e1a4b..0000000000 --- a/apps/web/@types/postcss-easings.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/* -Copyright 2026 Element Creations Ltd. - -SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial -Please see LICENSE files in the repository root for full details. -*/ - -declare module "postcss-easings" { - export default function (): void; -} diff --git a/apps/web/package.json b/apps/web/package.json index b254a489c9..6bd7da9291 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -188,7 +188,6 @@ "oxfmt": "0.60.0", "playwright-core": "catalog:", "postcss": "8.5.25", - "postcss-easings": "4.0.0", "postcss-hexrgba": "2.1.0", "postcss-import": "16.1.1", "postcss-loader": "8.2.1", diff --git a/apps/web/webpack.config.ts b/apps/web/webpack.config.ts index 67201cd970..1a45951829 100644 --- a/apps/web/webpack.config.ts +++ b/apps/web/webpack.config.ts @@ -25,7 +25,6 @@ import postcssPresetEnv from "postcss-preset-env"; import postcssImport from "postcss-import"; import postcssMixins from "postcss-mixins"; import postcssNested from "postcss-nested"; -import postcssEasings from "postcss-easings"; import pkgJson from "./package.json" with { type: "json" }; import componentsJson from "./components.json" with { type: "json" }; @@ -411,7 +410,6 @@ export default (env: string, argv: Record): webpack.Configuration = postcssMixins(), postcssSimpleVars(), postcssNested(), - postcssEasings(), postcssHexrgba(), // It's important that this plugin is last otherwise we end diff --git a/packages/shared-components/src/room/timeline/ReadMarker/ReadMarker.module.css b/packages/shared-components/src/room/timeline/ReadMarker/ReadMarker.module.css index b2717d31b3..538f45a62e 100644 --- a/packages/shared-components/src/room/timeline/ReadMarker/ReadMarker.module.css +++ b/packages/shared-components/src/room/timeline/ReadMarker/ReadMarker.module.css @@ -22,7 +22,8 @@ border-top: solid 1px var(--cpd-color-icon-accent-tertiary); border-bottom: solid 1px var(--cpd-color-icon-accent-tertiary); will-change: width, opacity; + /* cubic-bezier(0.12, 0, 0.39, 0) is ease-in-sine, spelled out because CSS has no name for it. */ transition: - width 400ms easeinsine 1s, - opacity 400ms easeinsine 1s; + width 400ms cubic-bezier(0.12, 0, 0.39, 0) 1s, + opacity 400ms cubic-bezier(0.12, 0, 0.39, 0) 1s; } diff --git a/packages/shared-components/src/room/timeline/ReadMarker/ReadMarker.test.tsx b/packages/shared-components/src/room/timeline/ReadMarker/ReadMarker.test.tsx index 37d8ad186f..e48ea398a6 100644 --- a/packages/shared-components/src/room/timeline/ReadMarker/ReadMarker.test.tsx +++ b/packages/shared-components/src/room/timeline/ReadMarker/ReadMarker.test.tsx @@ -71,6 +71,21 @@ describe("ReadMarker", () => { expect(onGhostTransitionEnd).toHaveBeenCalledTimes(1); }); + it("gives the ghost marker a transition the browser accepts", () => { + render( + , + ); + + // An unparseable easing drops the whole shorthand, so the ghost would vanish instantly + // and never fire transitionend. + const style = getComputedStyle(screen.getByRole("separator")); + expect(style.transitionProperty).toBe("width, opacity"); + expect(style.transitionDuration).toBe("0.4s, 0.4s"); + expect(style.transitionDelay).toBe("1s, 1s"); + }); + it("wires the current marker ref", () => { const onCurrentMarkerRef = vi.fn(); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f856aa52f8..2ad943d7ef 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -968,9 +968,6 @@ importers: postcss: specifier: 8.5.25 version: 8.5.25 - postcss-easings: - specifier: 4.0.0 - version: 4.0.0(postcss@8.5.25) postcss-hexrgba: specifier: 2.1.0 version: 2.1.0(postcss@8.5.25) @@ -11072,12 +11069,6 @@ packages: peerDependencies: postcss: ^8.4 - postcss-easings@4.0.0: - resolution: {integrity: sha512-KNpwHA3mTnf0UWcdwahQDaz7DDJ6QteVwdlLff98se854p6pyQW9iofwrD05vtlp33AAAxuUGCOhYwERRJGy6Q==} - engines: {node: '>=16.0'} - peerDependencies: - postcss: ^8.1.0 - postcss-focus-visible@11.0.0: resolution: {integrity: sha512-VG1a9kBKizUBWS66t5xyB4uLONBnvZLCmZXxT40FALu8EF0QgVZBYy5ApC0KhmpHsv+pvHMJHB3agKHwmocWjw==} engines: {node: '>=20.19.0'} @@ -24614,11 +24605,6 @@ snapshots: postcss: 8.5.25 postcss-value-parser: 4.2.0 - postcss-easings@4.0.0(postcss@8.5.25): - dependencies: - postcss: 8.5.25 - postcss-value-parser: 4.2.0 - postcss-focus-visible@11.0.0(postcss@8.5.25): dependencies: postcss: 8.5.25