Repository navigation
feat(details): disclosures fade in on Firefox and Safari, which can't grow a height to auto - #432
Conversation
… 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.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
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-sizeis 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.
gpt-6.1-sol(xhigh) | 𝕏
comark-annotate
comark-badge
comark-bundle
comark-cards
comark-carousel
comark-cast
comark-charts
comark-chat
comark-chips
comark-cjk
comark-code
comark-code-notes
comark-colors
comark-comments
comark-critic
comark-deflist
comark-details
comark-diagrams
comark-diff
comark-embed
comark-fields
comark-figure
comark-file-tree
comark-footnotes
comark-git-graph
comark-github
comark-icon
comark-include
comark-keys
comark-links
comark-linter
comark-magic-move
comark-mark
markdown-it-to-comark
marked-to-comark
comark-mathml
comark-media
comark-metrics
migrate-to-comark
comark-outline
comark-properties
comark-qr
comark-quiz
comark-reading-time
remark-to-comark
comark-sources
comark-steps
comark-table
comark-tabs
comark-tests
comark-time
comark-ui
comark-xref
comark-zoom
commit: |
There was a problem hiding this comment.
✅ 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-dotand 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.
gpt-6.1-sol(xhigh) | 𝕏
Latest result Pull request merged. Final answersSession Pull request merged. 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. |

In Firefox and Safari, a details box, a code fold, a file-tree folder or any other disclosure opens with no motion.
disclosureMotion()inshared/disclosure.tsonly animates under@supports (interpolate-size: allow-keywords), which only Chromium has. Apps add their own fallback, as onmax.me does in itsmain.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 withprefers-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.tsruns in Firefox: the content's opacity is between 0 and 1 in the frames after it opens, and stays 1 with reduced motion. Onmainthe 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