oddbird / oddbird/css-anchor-positioning

[BUG] Fallback behavior differences from Chromium implementation

Open
#325 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.