oddbird / oddbird/css-anchor-positioning
Can I load this in a custom-element, so it can access shadow-dom?
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 493
- Forks
- 18
- Avg merge
- 12h 37m
- Merged PRs (30d)
- 5
Description
Hi, really nice polyfill.
I would like the example which keeps the container in the viewport. I have 2 questions.
Does it work with shadowdom. I would like to use it for a custom dropdown component where the popup has to stay inside the window.
Second question is, I see the example constantly updating when it overlaps the border of the scrollable content. Wouldn't that make it slow. Is that a bug?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the example that keeps the container in the viewport and investigate its behavior inside a custom element with shadow DOM. Reproduce the reported updates when the popup overlaps scrollable content, then determine whether shadow DOM support and update frequency need documentation or a scoped change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100