Opened 9 years ago
Closed 9 years ago
#14922 closed bug (notabug)
IE11 - Incorrect css('height') of box-sized element if parent is hidden
Reported by: | 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.
Note: See
TracTickets for help on using
tickets.
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