Open Bug 1801710 Opened 3 years ago Updated 3 years ago

`element.scrollHeight` for `overflow: visible` elements takes in-flow position of relatively positioned elements

Categories

(Core :: Layout, defect)

defect

Tracking

()

People

(Reporter: dshin, Unassigned)

References

Details

Attachments

(1 file)

STR: Load attached test case, examine console for the value of scrollHeight
Expected: Should print 100
Actual: Prints 200

The element contains a relatively positioned element.

From the entry point, nsLayoutUtils::UnionChildOverflow gets called, which combines normal and actual position of relatively positioned elements.

See Also: → 1800939
Summary: `element.scrollHeight` for `overflow: visible` elements can be larger than the element's size → `element.scrollHeight` for `overflow: visible` elements takes in-flow position of relatively positioned elements
Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: