[css-anchor-position] Full markup and CSS examples
Nobody has claimed this yet.
- Dominant language
- Bikeshed
- Stars
- 4.9k
- Forks
- 816
- PR merge metrics
- PR metrics pending
Description
Hi, I've been working on an implementation of a polyfill of CSS Anchor Positioning with @oddbird and have run into some confusion due to there being no up to date/correct markup examples. For example we are currently confused by the use of anchor name vs anchor id vs anchor attribute and how this relates to the CSS rules.
We'd love to have a full example of the HTML markup and corresponding CSS so the API of the polyfill matches the real implementation closely.
For example, in this section it's difficult to work out whether the --foo ident refers to an ID, an anchor name, an anchor attribute value, or something else: https://tabatkins.github.io/specs/css-anchor-position/#anchor-name:~:text=For%20example%2C%20in,lengths%20in%20each.
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 linked CSS Anchor Positioning specification, especially the anchor-name section and its existing examples. Add a complete HTML markup and corresponding CSS example that makes the relationship between anchor name, anchor id, anchor attribute, and CSS rules unambiguous; done means the API usage can be followed without guessing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100