oddbird / oddbird/css-anchor-positioning

[BUG] anchor-name and position-anchor set via CSSOM are invisible to the polyfill

Open
#445 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

Setting anchorName or positionAnchor from JavaScript does nothing in a browser without native anchor positioning. The CSSOM drops properties it doesn't know, so no declaration ends up in the style attribute.

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

Trace how the polyfill handles CSSOM assignments to anchorName and positionAnchor when native anchor positioning is unavailable. Reproduce the issue by setting each property from JavaScript and inspect the resulting style attribute; done means both declarations remain available to the polyfill and affect its behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.