Repository navigation
feat(carousel,outline): let a carousel's slides run past the column with --cc-bleed, and keep the side outline clear of them - #495
Conversation
…ith --cc-bleed, and keep the side outline clear of them
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. |
Latest result Pull request merged. Final answersSession Pull request merged. PR #495 is ready. The pinned head addresses all prior findings, all reported hosted checks passed, and no review threads remain open. All 25 focused carousel and outline tests passed locally. The pnpm lint wrapper hit a local SQLite error, but running the same linter directly completed with warnings and no errors. No repair push was needed. Session Pull request evidence changed. Session Pull request evidence changed. Session Waiting for review checks before the next pass. Session Waiting for review checks before the next pass. |
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-motion
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.
Important
The documented responsive setup can clip slides with no visible paging controls, and a long code line can hide the outline even on a wide page with no carousel.
Approach: Extending only the track and reusing the outline’s existing reservation is sound, but the track needs a nonnegative bleed and the outline needs to distinguish visible bleed from clipped content.
Reviewed changes — Reviewed the carousel sizing and navigation, the outline’s placement and reservation, and the documented host CSS. All 47 carousel and outline end-to-end tests passed in Chromium; additional browser checks reproduced the cases below.
- Carousel bleed: Adds
--cc-bleedat the logical end, keeps controls in the column, and changes the sizing basis of the slides. - Outline placement: Includes overflowing parts of top-level blocks in the existing rail reservation calculation.
- Docs and coverage: Documents the host CSS and adds positive-bleed tests in LTR and RTL plus a rail integration test at 1440px.
gpt-6.2-sol(high) | 𝕏
There was a problem hiding this comment.
Important
Firefox can clip the second slide of a two-column carousel with both arrows and scrollbar hidden, even with bleed off. The new wrappers and stylesheet registration also leave three existing Chromium and unit checks failing.
Approach: Separating the scrollport from the slide grid preserves padding and percentage gaps, but the two widths used to size that grid must stay in the same coordinate space under CSS zoom.
Reviewed changes — Reviewed 71f1572 since the prior review. The new regression tests pass in Chromium; the Firefox comparison against e9bfcde isolates the zoom regression to this commit.
- Reworked carousel sizing: Separated the scrollport from the slide grid in all four renderers, updated annotation styling and carousel selectors, and clamped bleed to zero.
- Restricted outline measurement: Excluded children of horizontally clipping blocks and added tests for a clipped code fence and negative room after rail reservation.
gpt-6.2-sol(high) | 𝕏
There was a problem hiding this comment.
✅ No new issues found. No P0 or P1 findings remain.
Reviewed changes — Reviewed e3d75e0 since the previous review. All 121 focused Chromium tests, both Firefox regression tests, and 17 unit tests passed. WebKit could not run locally because the runner lacks its system libraries.
- Fixed slide sizing under CSS
zoom: Stored the column width as a unitless ratio so Firefox keeps the same slide widths and percentage gaps when bleed is enabled. - Restored the stylesheet layer: Moved the custom property registration inside
@layer comark. - Repaired and extended browser coverage: Updated the overflow and reduced-motion tests for the new markup, and added Firefox tests for the visible range and padded track geometry.
gpt-6.2-sol(high) | 𝕏

A carousel can now let its slides run past the text column into the room beside it, so the next photo peeks in. Set
--cc-bleedto the room's width. Only the track bleeds: the slides keep their size, the counter and arrows stay under the column, and snapping still lines up at the start.The side outline now treats a block whose part runs past the text as wide, the same way it treats a wide table or diagram. It reserves its own column and sits right of the slides instead of over them.
Evidence: https://drop.vitehub.dev/d/h878xxrqyat4/carousel-bleed-evidence
packages/carousel/src/styles.ts:.cc-tracktakesmargin-inline-end: calc(-1 * var(--cc-bleed, 0px)), and slides size from100cqiof the carousel rather than from the track.packages/outline/src/script.ts:place()also counts a child of a top-level block whose right edge passes the text.--cc-bleedin ltr and rtl (slide size, track width, controls, count), and the outline keeping 40–64 px clear of bleeding slides at 1440 px.🤖 Generated with Claude Code