Skip to content

chore: remove @oddbird/css-anchor-positioning polyfill#155

Merged
qw-in merged 1 commit intomainfrom
copilot/remove-anchor-positioning-polyfill
Apr 7, 2026
Merged

chore: remove @oddbird/css-anchor-positioning polyfill#155
qw-in merged 1 commit intomainfrom
copilot/remove-anchor-positioning-polyfill

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 6, 2026

CSS anchor positioning is now baseline across all major browsers. The polyfill is no longer needed.

Changes

  • 7 examples (astro, nextjs, nextjs-fly, nuxt, react-router, sveltekit, tanstack-start): uninstalled @oddbird/css-anchor-positioning and updated lockfiles
  • PopoverTarget.tsx (nextjs, nextjs-fly, react-router, tanstack-start): removed polyfill symbol, global Window augmentation, polyfillAnchorPositioning() function, and the useEffect that called it
  • Main.astro: removed <script> block with conditional polyfill import
  • app.vue (nuxt): removed polyfill import from <script setup>
  • +layout.svelte (sveltekit): removed onMount polyfill block and now-unused onMount/browser imports
  • 10 styles.css files: removed /* Explicit anchor-name required for polyfill */ comments (the anchor-name declarations remain — they're spec CSS)
  • CONTRIBUTING.md: removed polyfill from install command and setup instructions

CSS anchor positioning is now baseline across all major browsers.
Remove the polyfill from all examples and the contributing guide.

Agent-Logs-Url: https://github.com/arcjet/examples/sessions/f6678c2d-94d4-44bc-9bd9-7cc86c58f804

Co-authored-by: qw-in <19194187+qw-in@users.noreply.github.com>
@qw-in qw-in changed the title Remove @oddbird/css-anchor-positioning polyfill chore: remove @oddbird/css-anchor-positioning polyfill Apr 6, 2026
@qw-in qw-in marked this pull request as ready for review April 6, 2026 18:58
@qw-in qw-in enabled auto-merge April 6, 2026 19:44
@qw-in qw-in added this pull request to the merge queue Apr 7, 2026
Merged via the queue into main with commit ce25fb5 Apr 7, 2026
19 checks passed
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.

3 participants