Repository navigation
docs: write down the browser support floor and the native-first rule - #458
Conversation
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.
ℹ️ 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.
gpt-6.1-sol(xhigh) | 𝕏
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.
f066981 to
5ed5886
Compare
There was a problem hiding this comment.
ℹ️ 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/clientto 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.
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: |
Latest result Pull request merged. Final answersSession Pull request merged. 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. |

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
@supportswith no fallback (shared/disclosure.tsis 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 (interestforis Chrome-only), and outside-click on dialogs (closedbywaits for Safari 27.3).test/inline-scripts.test.tsenforces one rule: inline client scripts carry no polyfill. It finds every function anhtml.tsinlines withtoString()and fails when its module imports one. I addedimport "temporal-polyfill/global"topackages/outline/src/script.tsand 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).