Skip to content

feat(core): give the atom source real caret geometry in a zero-width box - #446

Draft
ocavue wants to merge 2 commits into
masterfrom
feat/atom-source-caret-box
Draft

feat(core): give the atom source real caret geometry in a zero-width box#446
ocavue wants to merge 2 commits into
masterfrom
feat/atom-source-caret-box

Conversation

@ocavue

@ocavue ocavue commented Aug 5, 2026

Copy link
Copy Markdown
Member

Experimental fix for the iOS DOM-anchor oscillation beside atoms: the hidden source keeps its natural font size inside a zero-width box, so every caret position in it has real inline box geometry and iOS WebKit has no reason to relocate the anchor. Instrumented with console write-attribution logging for real-device testing.

@vercel

vercel Bot commented Aug 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
meowdown Ready Ready Preview Aug 5, 2026 10:39am

@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 02888f15-aad5-4e0f-afe5-3fa82ca04f09

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Aug 5, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@meowdown/core@446
npm i https://pkg.pr.new/@meowdown/markdown@446
npm i https://pkg.pr.new/@meowdown/react@446

commit: fda9c5d

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 93.09% 4676 / 5023
🔵 Statements 90.79% 5255 / 5788
🔵 Functions 90.46% 1129 / 1248
🔵 Branches 86.38% 3356 / 3885
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/core/src/style.css 0% 0% 0% 0%
packages/core/src/extensions/caret-rect.ts 91.04% 87.75% 100% 98.11% 21, 22, 58, 76, 101, 103
packages/core/src/extensions/virtual-caret.ts 98.16% 94.64% 100% 98.98% 39, 124
packages/core/src/utils/virtual-element.ts 73.91% 55% 75% 85% 17-18, 35, 49, 55, 65
Generated in workflow #1755 for commit fda9c5d by the Vitest Coverage Report Action

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