w3c / w3c/csswg-drafts

[css-forms-1] Use better fallbacks for ::picker(select)

Open
#13,541 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-forms-1 Needs Edits Needs Testcase (WPT)
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

@fantasai suggests using:

position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline; instead of the current fallbacks, since it flips margins/insets as well.

(So if you add margin-block-start: 10px to ::picker(), it becomes margin-bottom: 10px when the fallback is used)

Equivalent changes should be done in HTML as well.

cc @josepharhar @annevk @fantasai @lukewarlow @mfreed7

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

Start in the CSS Forms Level 1 specification by locating the current ::picker(select) position-try-fallbacks declarations, then find the equivalent rules in the HTML specification. Replace the current fallback lists with the proposed block and inline combinations, and verify that both specifications contain equivalent changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation, web-dev
Issue type
Feature
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.