Skip to content

Regression: width() & height() return 0 for all inline elements #3571

Closed
@Krinkle

Description

Description

Select any element on the page that doesn't have an explicit width set via a stylesheet or inline attribute and call .width().

In jQuery 1.x, 3.0.x and 3.1.1 this returns the computed width.

As of jQuery 3.2.0 it returns 0. This is breaking various downstream test suites for Wikimedia and is blocking our upgrade for now.

Link to test case

http://codepen.io/Krinkle/pen/RpjgpR

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions