Skip to content

[css-forms-1] Find a way to avoid double border between ::picker() and button #13527

@nt1m

Description

@nt1m

The double border between the ::picker() and the button looks slightly unpleasant:

Image

Some options to fix it:

  1. add spacing on top of the popover (not my preferred option given it's one more property override), so the picker is spaced away from the button.
  2. add negative margin around the popover (not my preferred option given it breaks when you start to have different border-widths on the button, and it's also annoying to override)
  3. anchor the popover to the padding-box of the button instead of the border-box (@fantasai told me there was an extension to anchor positioning that would allow that).

Personally in favor of 3 given it's the least pain for developers. I don't know how this would look like in the UA sheet though (potentially position-area: padding-box block-end inline-start or something)

@lukewarlow @josepharhar @fantasai @jensimmons

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions