Bug Tracker

Opened 5 years ago

Closed 5 years ago

#14922 closed bug (notabug)

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

Reported by: unknown9595@… 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.

Change History (1)

comment:1 Changed 5 years ago by dmethvin

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

Note: See TracTickets for help on using tickets.