Skip to content

[css-view-transitions-2] ::v-t-old and ::v-t-new should be display:block #13373

@skobes-chromium

Description

@skobes-chromium

In the global view transition user agent style sheet, the ::view-transition-old and ::view-transition-new elements are position: absolute without an explicit display or inset-inline-start.

Setting position: absolute causes the computed style of display to be block, but the resolution of inset-inline-start: auto uses the static offset determined as if the element had its initial display value, which is inline (illustration).

This can cause problems such as inappropriate horizontal shifting if an ancestor has text-align: center (crbug.com/476120655).

It would be better for the UA style sheet to explicitly set either display: block or inset-inline-start: 0 (or both).

cc @vmpstr

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