Open Bug 1439305 Opened 7 years ago Updated 8 months ago

Invalid ScrollHeight with overflow: visible if margin applied

Categories

(Core :: DOM: CSS Object Model, enhancement, P3)

enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: king-sora, Unassigned)

References

Details

If you have a element with "overflow: visible" and this element has a child with margin, then the value for "scrollHeight" doesn't include the margin unless you set the overflow to "hidden". I've done a small fiddle to show you the problem: https://jsfiddle.net/ohtq3gz3 As you can see, the scrollHeight value differs if the child element has margin. This bug only happens in Firefox. I've tested it with Chrome, IE11, Opera and Edge.
Maybe it's usefull if I link this simmilar bug: https://bugzilla.mozilla.org/show_bug.cgi?id=833542
See Also: → 833542
[ Triage 2017/02/20: P3 ]
Priority: -- → P3
Any updates on this Issue?
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.