Skip to content

DOM-Effects example does not work the first time around #306

@yoshi-monster

Description

@yoshi-monster

See: #301 (comment)

The problem here is that the image is rendered conditionally, so when the user first clicks the button, the image is not yet loaded, so the browser doesn't know yet how big it will be. The max-width and aspect-ratio CSS rules don't help, since the image might be smaller than that. After that, the image is cached so the browser will tell us the correct height.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsAdditions or improvements to our documentation.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions