oddbird / oddbird/css-anchor-positioning
[BUG] Fallback behavior differences from Chromium implementation
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 493
- Forks
- 18
- Avg merge
- 12h 37m
- Merged PRs (30d)
- 5
Description
Describe the bug
In Chromium browsers, when a fallback is applied, it stays until the fallback overflows and a new fallback (or the initial position) is selected.
In the polyfill, when a fallback is applied, it reverts to the initial position as soon as the initial position no longer overflows, even if the fallback does not overflow.
To Reproduce
Compare the fallback examples between Chrome (no polyfill) and Firefox (polyfilled).
Expected behavior
I'm uncertain of the expected behavior and haven't been able to track it down yet. My reading of the spec aligns with the polyfill's implementation, but it may have something to do with the nuances of the timing that are mentioned.
I do not see any relevant spec changes.
I am not sure if this is a change in Chromium's behavior, or if this has always been the case.
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
Compare the fallback examples in Chrome without the polyfill and Firefox with it, then read the polyfill's fallback implementation alongside the CSS Anchor Positioning fallback-apply specification. Confirm whether Chromium's behavior matches the specification and determine the expected fallback selection behavior; done means the implementation and an appropriate regression check agree with that behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100