Skip to content

[css-position][css-anchor-position][css-align] anchor-center and overflowing the inset-modified containing block #12020

Closed
@fantasai

Description

@fantasai

Consider an element inside a 100x100 containing block:

.abspos {
  position: absolute;
  position-anchor: --foo;
  inset: 20px;
  place-self: anchor-center;
  size: 8px;
}

Suppose the anchor is positioned at 20px from the left. Centering it against the anchor would place its left edge at 16px, but the inset is 20px. What should happen here?

This question came up in web-platform-tests/interop#945

My interpretation is that the default overflow rules should only allow the item to overflow its insets if it doesn't fit within its inset-modified containing block. Ian's was that anchor-center simply ignores the insets always. What do we think is the right behavior?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Thursday Afternoon

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions