Skip to main content

Bug Tracker

Side navigation

#14922 closed bug (notabug)

Opened March 26, 2014 04:25PM UTC

Closed March 26, 2014 06:38PM UTC

IE11 - Incorrect css('height') of box-sized element if parent is hidden

Reported by: unknown9595@hotmail.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.11.0
Keywords: Cc:
Blocked by: Blocking:
Description

http://jsfiddle.net/gDR7J/11/

If parent is hidden, css('height') reports non box-sizing height. Once parent is shown, correct dimensions are shown.

Attachments (0)
Change History (1)

Changed March 26, 2014 06:38PM UTC by dmethvin comment:1

resolution: → notabug
status: newclosed

I don't think we've ever guaranteed that we can accurately get the height of a parent-hidden element. To do so would torment the browser into a significant forced layout, so it's better not to ask the question. The docs are silent on this, which is an error of omission, but there's plenty in Google about it.

I've moved this to a docs item, https://github.com/jquery/api.jquery.com/issues/469