Skip to content

[css-anchor-position] Make position-area discretely animatable, for now. #13577

Closed

Description

@bramus

The css-anchor-position-1 spec defines the animation type of position-area as:

TBD

This is leading to inconsistencies across browsers:

  • Safari and Chrome: the property animates discretely
  • Firefox: the property does not animate

Still allowing a possible future custom description for how it should animate (the magic in #9598 (comment) for the L2 spec), I think we should define it as discretely animatable until then.

This would remove the cross-browser inconsistency and also unlock animating from one position-area to another using View Transitions with a StyleObserver, as shown in this demo (which currently doesn’t work in Firefox): https://codepen.io/bramus/full/myrJYQz/b6aace5cc714e3147f81a2a1b4ed10f4

Activity

  1. bramus commented on Mar 2, 2026

    @bramus
    ContributorAuthor

    I checked Stylo and position-area is defined as discretely animatable (so the behavior I saw is most likely a bug)

    We should still update the spec though, so that it lines up with what browsers have implemented.

  2. bramus commented on Mar 18, 2026

    @bramus
    ContributorAuthor

    @fantasai Is this considered “Editor’s discretion” or do we need a more formal (async) resolution?

  3. fantasai commented on Mar 27, 2026

    @fantasai
    Collaborator

    @bramus Done, thanks for filing!

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

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