Skip to content

scrollWidth and scrollHeight are Ints not Numbers #55

Description

@seastian

https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollWidth

Note: This property will round the value to an integer. If you need a fractional value, use [element.getBoundingClientRect()](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect).

Not sure if worth a breaking change but I just ran into it when comparing it with width.

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