Skip to content

[css-align] normal alignment doesn't really behave as stretch for non-replaced abspos with auto insets #11215

Open

Description

@Loirooriol

https://drafts.csswg.org/css-align/#justify-abspos

For replaced absolutely-positioned boxes, the normal keyword behaves as start.

For all other absolutely-positioned boxes, normal behaves as stretch.

https://drafts.csswg.org/css-align/#align-abspos

For replaced absolutely-positioned boxes, the normal keyword behaves as start.

For all other absolutely-positioned boxes, normal behaves as stretch.

However: https://drafts.csswg.org/css-position-3/#abspos-auto-size

So normal can't be behaving as stretch if they affect sizing in different ways.

Activity

  1. changed the title [-][css-align] `normal` alignment doesn't really behave as `stretch` for abspos with auto insets[/-] [+][css-align] `normal` alignment doesn't really behave as `stretch` for non-replaced abspos with auto insets[/+] on Nov 15, 2024
  2. Loirooriol commented on Nov 18, 2024

    @Loirooriol
    ContributorAuthor

    I think https://drafts.csswg.org/css-position-3/#abspos-auto-size needs to be removed.

    And then, https://drafts.csswg.org/css-align/#justify-abspos and https://drafts.csswg.org/css-align/#align-abspos should resolve normal to either stretch or start appropriately.

  3. fantasai commented on Mar 10, 2025

    @fantasai
    Collaborator

    I did the opposite and made css-align-3 defer to css-position-3, which I think is a better way to handle this. Lmk if this works for you @Loirooriol :
    2a82852

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions