[css-position-3] New `container-fixed` value for `position` within a `@container`

Open
#8,762 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
css
Domain
frontend, web-dev

Research direction

No implementation file, test, or entry point is named. Start by reading the CSS Positioning specification discussion for the proposed container-fixed value and its interaction with @container, absolute positioning, and scrolling. Done means the value's syntax and behavior are agreed and specified, including an accepted name.

Written by the indexing model from the issue text.

Description

css-position-4

With the growing support for @container, it’d be cool if CSS added a new position value to make an element fixed within the context of its container.

The main workaround for this I've used thus far is to position an element absolute within its parent with the top value offset by the current scroll distance of its parent.

We can certainly bikeshed on the value name a bit more as container-fixed is a bit verbose, but that's the general idea.

Dominant language
Bikeshed
Stars
4.9k
Forks
816
Avg merge
2d 18h
Merged PRs (30d)
24

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.

More from w3c/csswg-drafts

All issues in w3c/csswg-drafts

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.