Skip to content

docs: write down the browser support floor and the native-first rule - #458

Merged
vite-hub[bot] merged 1 commit into
mainfrom
docs/native-first-rule
Nov 17, 2026
Merged

vite-hub[bot] merged 1 commit into
mainfrom
docs/native-first-rule

Conversation

@onmax

@onmax onmax commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

AGENTS.md doesn't say which browsers comark-ui supports, so each PR decides on its own whether a feature needs a fallback or a polyfill. #456 and #457 each went through webstatus.dev to settle it.

This PR adds a Browser support section. It sets the floor at the latest two Chrome and Firefox releases plus the current and previous Safari major (27.2 and 27.1). It says when to use a feature directly, when under @supports with no fallback (shared/disclosure.ts is the reference), and that a polyfill loads only from bundled code. It also covers dates (Intl, Temporal once stable Safari has it), native popover and <dialog>, and anchor positioning as #456 does it. Three things stay in JavaScript, each with its reason: the outline's follow-scroll (scrollIntoView({ container }) is Chrome-only), the sources card's hover-open (interestfor is Chrome-only), and outside-click on dialogs (closedby waits for Safari 27.3).

test/inline-scripts.test.ts enforces one rule: inline client scripts carry no polyfill. It finds every function an html.ts inlines with toString() and fails when its module imports one. I added import "temporal-polyfill/global" to packages/outline/src/script.ts and the test failed on it. It passes on this branch.

#456's line about the sources card stays where it is, in the package bullet. The new section links to it rather than repeating it. #457, merged since, already follows it in the zoom dialog.

Drop comment plan: K5 (native-first).

@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-17T17:20:01.662571Z
We couldn’t complete this review. Comment @codex review to try again.
f066981 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.

ℹ️ No P0 or P1 findings; one small browser-support policy gap inline.

Reviewed changes — Reviewed the native-first browser policy and the new source-level guard for inline scripts.

  • Browser policy: Defines the support floor, native-feature and fallback rules, polyfill restrictions, and exceptions for scrolling, hover cards, and dialog dismissal.
  • Inline-script guard: Discovers serialized functions in HTML renderers and rejects polyfill imports in their source modules; all 19 tests, targeted lint, and isolated typechecking pass.

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

Comment thread AGENTS.md Resolved
Adds a Browser support section to AGENTS.md, and test/inline-scripts.test.ts, which fails when a module whose function an HTML renderer inlines imports a polyfill.
@onmax
onmax force-pushed the docs/native-first-rule branch from f066981 to 5ed5886 Compare November 17, 2026 17:36

@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 findings; the existing P2 thread remains open. No P0 or P1 findings remain.

Reviewed changes — Reviewed the inline-script guard's workspace-import resolution added since the previous review.

  • Added workspace resolution: Mapped sibling package imports such as comark-time/client to their source modules while preserving relative-import handling and rejecting unknown external packages.
  • Verified the updated guard: All 20 focused tests, targeted lint, and isolated strict TypeScript checking pass.

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

@pkg-pr-new

pkg-pr-new Bot commented Nov 17, 2026

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

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

comark-badge

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

comark-bundle

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

comark-cards

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

comark-carousel

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

comark-cast

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

comark-charts

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

comark-chat

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

comark-chips

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

comark-cjk

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

comark-code

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

comark-code-notes

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

comark-colors

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

comark-comments

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

comark-critic

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

comark-deflist

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

comark-details

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

comark-diagrams

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

comark-diff

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

comark-embed

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

comark-fields

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

comark-figure

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

comark-file-tree

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

comark-footnotes

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

comark-git-graph

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

comark-github

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

comark-icon

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

comark-include

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

comark-keys

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

comark-links

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

comark-linter

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

comark-magic-move

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

comark-mark

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

markdown-it-to-comark

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

marked-to-comark

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

comark-mathml

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

comark-media

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

comark-metrics

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

migrate-to-comark

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

comark-outline

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

comark-properties

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

comark-qr

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

comark-quiz

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

comark-reading-time

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

remark-to-comark

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

comark-sources

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

comark-steps

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

comark-table

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

comark-tabs

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

comark-tests

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

comark-time

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

comark-ui

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

comark-xref

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

comark-zoom

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

commit: 5ed5886

@vite-hub

vite-hub Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Completed 2026-11-17T19:04:49.378Z 3m 14s

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

View session

Ready under the repair policy: no P0/P1 findings or failed hosted checks remain. Declined and resolved the valid P2 Safari cutoff documentation finding because P2-only pushes are prohibited. No files changed. All 20 focused tests and repository lint passed using installed binaries; pnpm wrappers encountered a local SQLite store error. Lint reported warnings.

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