Skip to content

feat(details): disclosures fade in on Firefox and Safari, which can't grow a height to auto - #432

Merged
vite-hub[bot] merged 2 commits into
mainfrom
n8/details-fade
Nov 14, 2026
Merged

vite-hub[bot] merged 2 commits into
mainfrom
n8/details-fade

Conversation

@onmax

@onmax onmax commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

In Firefox and Safari, a details box, a code fold, a file-tree folder or any other disclosure opens with no motion. disclosureMotion() in shared/disclosure.ts only animates under @supports (interpolate-size: allow-keywords), which only Chromium has. Apps add their own fallback, as onmax.me does in its main.css.

This adds one under @supports not (interpolate-size: allow-keywords): the content's children fade in, with a 4px drop, at the opening timing, and only with prefers-reduced-motion: no-preference. Closing stays instant there. It animates the children because Firefox 157 runs no transition and no animation on ::details-content; I checked both in Playwright's Firefox and WebKit. Chromium's motion doesn't change.

Two limits: text alone in a details (Comark leaves one line unwrapped) has no element to fade, and a details that starts open fades in once on load, as onmax.me's fallback does today.

e2e/details-firefox.e2e.ts runs in Firefox: the content's opacity is between 0 and 1 in the frames after it opens, and stays 1 with reduced motion. On main the fade test fails. CI now installs Firefox for it. WebKit passes the same test locally, but CI doesn't install WebKit.

I built onmax.me against this PR's build with its own fallback deleted from main.css. In Firefox the open box is pixel-identical, and the content fades in over the package's .25s instead of the app's 200ms. Before/after: https://drop.vitehub.dev/d/jkykj7vjcx57/onmax-me-comark-ui-n8

… grow a height to auto

Without interpolate-size the disclosures opened with no motion. Firefox runs no
transition or animation on ::details-content, so the fallback fades in the
content's children, and respects prefers-reduced-motion. CI installs Firefox for
its e2e test.
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-14T17:46:19.214984Z
We couldn’t complete this review. Comment @codex review to try again.
cf2daac PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

The shared animation breaks an existing Chat test, so check / check currently fails. No P0 or P1 defects found.

Reviewed changes — Reviewed the disclosure fallback, its seven package consumers, browser coverage, and documentation.

  • Fallback motion: Direct content elements fade and translate into place where interpolate-size is unavailable, while reduced motion stays instant and Chromium retains its existing transitions.
  • Browser coverage: Two Firefox tests cover opening opacity and reduced motion, and CI now installs Firefox.
  • Documentation: Details documentation and repository guidance describe the fallback and its browser behavior.

Validation: the workspace build and six targeted Firefox/Chromium E2E tests passed. The full unit suite produced 3,136 passes, two skips, and the one Chat failure described inline. WebKit could not be verified locally because required system libraries are unavailable.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.1-sol(xhigh) | 𝕏

Comment thread shared/disclosure.ts Resolved
@pkg-pr-new

pkg-pr-new Bot commented Nov 14, 2026

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

pnpm add https://pkg.pr.new/comark-annotate@432

comark-badge

pnpm add https://pkg.pr.new/comark-badge@432

comark-bundle

pnpm add https://pkg.pr.new/comark-bundle@432

comark-cards

pnpm add https://pkg.pr.new/comark-cards@432

comark-carousel

pnpm add https://pkg.pr.new/comark-carousel@432

comark-cast

pnpm add https://pkg.pr.new/comark-cast@432

comark-charts

pnpm add https://pkg.pr.new/comark-charts@432

comark-chat

pnpm add https://pkg.pr.new/comark-chat@432

comark-chips

pnpm add https://pkg.pr.new/comark-chips@432

comark-cjk

pnpm add https://pkg.pr.new/comark-cjk@432

comark-code

pnpm add https://pkg.pr.new/comark-code@432

comark-code-notes

pnpm add https://pkg.pr.new/comark-code-notes@432

comark-colors

pnpm add https://pkg.pr.new/comark-colors@432

comark-comments

pnpm add https://pkg.pr.new/comark-comments@432

comark-critic

pnpm add https://pkg.pr.new/comark-critic@432

comark-deflist

pnpm add https://pkg.pr.new/comark-deflist@432

comark-details

pnpm add https://pkg.pr.new/comark-details@432

comark-diagrams

pnpm add https://pkg.pr.new/comark-diagrams@432

comark-diff

pnpm add https://pkg.pr.new/comark-diff@432

comark-embed

pnpm add https://pkg.pr.new/comark-embed@432

comark-fields

pnpm add https://pkg.pr.new/comark-fields@432

comark-figure

pnpm add https://pkg.pr.new/comark-figure@432

comark-file-tree

pnpm add https://pkg.pr.new/comark-file-tree@432

comark-footnotes

pnpm add https://pkg.pr.new/comark-footnotes@432

comark-git-graph

pnpm add https://pkg.pr.new/comark-git-graph@432

comark-github

pnpm add https://pkg.pr.new/comark-github@432

comark-icon

pnpm add https://pkg.pr.new/comark-icon@432

comark-include

pnpm add https://pkg.pr.new/comark-include@432

comark-keys

pnpm add https://pkg.pr.new/comark-keys@432

comark-links

pnpm add https://pkg.pr.new/comark-links@432

comark-linter

pnpm add https://pkg.pr.new/comark-linter@432

comark-magic-move

pnpm add https://pkg.pr.new/comark-magic-move@432

comark-mark

pnpm add https://pkg.pr.new/comark-mark@432

markdown-it-to-comark

pnpm add https://pkg.pr.new/markdown-it-to-comark@432

marked-to-comark

pnpm add https://pkg.pr.new/marked-to-comark@432

comark-mathml

pnpm add https://pkg.pr.new/comark-mathml@432

comark-media

pnpm add https://pkg.pr.new/comark-media@432

comark-metrics

pnpm add https://pkg.pr.new/comark-metrics@432

migrate-to-comark

pnpm add https://pkg.pr.new/migrate-to-comark@432

comark-outline

pnpm add https://pkg.pr.new/comark-outline@432

comark-properties

pnpm add https://pkg.pr.new/comark-properties@432

comark-qr

pnpm add https://pkg.pr.new/comark-qr@432

comark-quiz

pnpm add https://pkg.pr.new/comark-quiz@432

comark-reading-time

pnpm add https://pkg.pr.new/comark-reading-time@432

remark-to-comark

pnpm add https://pkg.pr.new/remark-to-comark@432

comark-sources

pnpm add https://pkg.pr.new/comark-sources@432

comark-steps

pnpm add https://pkg.pr.new/comark-steps@432

comark-table

pnpm add https://pkg.pr.new/comark-table@432

comark-tabs

pnpm add https://pkg.pr.new/comark-tabs@432

comark-tests

pnpm add https://pkg.pr.new/comark-tests@432

comark-time

pnpm add https://pkg.pr.new/comark-time@432

comark-ui

pnpm add https://pkg.pr.new/comark-ui@432

comark-xref

pnpm add https://pkg.pr.new/comark-xref@432

comark-zoom

pnpm add https://pkg.pr.new/comark-zoom@432

commit: e4c9553

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found. No P0 or P1 findings remain.

Reviewed changes — Reviewed e4c9553, the Chat test update since the previous review.

  • Updated Chat motion coverage to permit the shared disclosure keyframes while rejecting animations on .cht-dot and retaining the static running/waiting ring assertion.

Validation: all 14 Chat tests passed, and the full unit suite passed with 3,137 tests and two skips after the workspace build completed. CI build, checks, E2E, and preview publishing also passed.

Pullfrog  | View workflow run | Using gpt-6.1-sol(xhigh) | 𝕏

@vite-hub

vite-hub Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Waiting 2026-11-14T18:47:16.759Z 30m 56s
View session Last seen running 2026-11-14T18:32:00.720Z 0s

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

View session

Ready: no actionable findings remain, and all supplied HEAD checks pass. Verified the resolved Chat assertion fix; its nine focused tests pass after building comark-zoom. Lint passes with warnings. The pnpm wrapper hit a local SQLite permission error, so validation used the installed binaries. No source changes or repair push were needed.

@vite-hub
vite-hub Bot merged commit 96a030c into main Nov 14, 2026
7 checks passed
@vite-hub
vite-hub Bot deleted the n8/details-fade branch November 14, 2026 19:22
@github-actions github-actions Bot mentioned this pull request Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant