Skip to content

getBoundingClientRect().width is not the same as scrollWidth #35466

Open
@Dmaziyo

Description

MDN URL

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

What specific section or headline is this issue about?

Note

What information was incorrect, unhelpful, or incomplete?

image
The note says we can get a fractional value for scrollWidth using getBoundingClientRect, but I didn't see this property in getBoundingClientRect.

What did you expect to see?

Either delete the note or provide the correct method to get a fractional value.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details

Metadata

Assignees

No one assigned

    Labels

    Content:WebAPIWeb API docshelp wantedIf you know something about this topic, we would love your help!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions