Skip to content

feat(carousel,outline): let a carousel's slides run past the column with --cc-bleed, and keep the side outline clear of them - #495

Merged
vite-hub[bot] merged 3 commits into
mainfrom
fix/carousel-bleed-right
Nov 28, 2026
Merged

vite-hub[bot] merged 3 commits into
mainfrom
fix/carousel-bleed-right

Conversation

@onmax

@onmax onmax commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

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-bleed to 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.

main > .cc { --cc-bleed: var(--comark-wide-end); }

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-track takes margin-inline-end: calc(-1 * var(--cc-bleed, 0px)), and slides size from 100cqi of 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.
  • e2e: the carousel with --cc-bleed in 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

…ith --cc-bleed, and keep the side outline clear of them
@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-28T11:38:24.895136Z
We couldn’t complete this review. Comment @codex review to try again.
e9bfcde 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.

@vite-hub

vite-hub Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Waiting 2026-11-28T12:39:19.459Z 3m 41s
View session Cancelled 2026-11-28T12:16:15.034Z 8m 8s
View session Cancelled 2026-11-28T12:12:58.887Z 1m 40s
View session Last seen running 2026-11-28T11:51:56.875Z 1s

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

View session

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.

@pkg-pr-new

pkg-pr-new Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

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

comark-badge

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

comark-bundle

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

comark-cards

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

comark-carousel

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

comark-cast

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

comark-charts

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

comark-chat

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

comark-chips

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

comark-cjk

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

comark-code

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

comark-code-notes

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

comark-colors

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

comark-comments

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

comark-critic

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

comark-deflist

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

comark-details

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

comark-diagrams

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

comark-diff

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

comark-embed

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

comark-fields

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

comark-figure

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

comark-file-tree

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

comark-footnotes

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

comark-git-graph

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

comark-github

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

comark-icon

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

comark-include

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

comark-keys

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

comark-links

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

comark-linter

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

comark-magic-move

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

comark-mark

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

markdown-it-to-comark

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

marked-to-comark

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

comark-mathml

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

comark-media

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

comark-metrics

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

migrate-to-comark

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

comark-motion

pnpm add https://pkg.pr.new/comark-motion@495

comark-outline

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

comark-properties

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

comark-qr

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

comark-quiz

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

comark-reading-time

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

remark-to-comark

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

comark-sources

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

comark-steps

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

comark-table

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

comark-tabs

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

comark-tests

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

comark-time

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

comark-ui

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

comark-xref

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

comark-zoom

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

commit: e3d75e0

@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 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-bleed at 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.

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

Comment thread packages/carousel/src/styles.ts Resolved
Comment thread packages/outline/src/script.ts Resolved
Comment thread packages/carousel/src/styles.ts Resolved

@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

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.

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

Comment thread packages/carousel/src/styles.ts Resolved
Comment thread packages/carousel/src/styles.ts Resolved
Comment thread e2e/carousel.e2e.ts Resolved

@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 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.

Pullfrog  | View workflow run | Using gpt-6.2-sol(high) | 𝕏

@vite-hub
vite-hub Bot merged commit b9cd718 into main Nov 28, 2026
7 checks passed
@vite-hub
vite-hub Bot deleted the fix/carousel-bleed-right branch November 28, 2026 12:47
@github-actions github-actions Bot mentioned this pull request Nov 27, 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