Skip to content

[css-view-transitions-1] What is the snapshot containing block for iframes? #9786

Description

@khushalsagar

The spec here says that if an element is too large for its entire image to be captured, implementations can clip the image as long as the contents in the snapshot containing block are captured.

But for definition of snapshot containing block is ambiguous for iframes: "all areas of the window that could potentially display page content". The impact it has on clipping of images aside, I think it should be the iframe's ICB. @bokand can explain this better.

But this means we need a better way to decide how to clip the image if the transition is happening in an iframe. The goal with the SCB recommendation was so we at least capture the onscreen content the user is seeing but the whole iframe could be offscreen. I'm thinking the following:

  • If the iframe is completely offscreen, just skip the transition. Why animate instead of directly flipping to the new state.
  • If its onscreen (fully or partially) use the SCB of the top level frame to decide what should be captured in the images.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status
    Monday morning

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions