Skip to content

clientWidth clientHeight offsetWidth offsetHeight cause block to be raised unexpectedly #7236

@shaozi

Description

@shaozi

Describe the bug

Adding any of
bind:clientWidth
clientHeight
offsetWidth
offsetHeight
to a div cause it to be raised above other blocks.

Reproduction

See this REPL:

https://svelte.dev/repl/a74a224404d1495c8c08d36da06890a0?version=3.46.4

It uses margin-top: -75px to put the second div on top of the first div. But after apply bind:clientHeight to the first div, it goes to the top and covers the second div.

Logs

No response

System Info

latest REPL

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions