jquery/jquery — pull request #1023 by PaulBRamos (2012-11-08 04:57:05+00:00)
Title: .width() returns percentage if a parent element has display = none.  Not...

... sure if this is considered a browser bug, but the behavior is consistent in recent versions of Safari, Firefox, and Chrome. The solution here was to quickly set display = block, get the width using window.getComputedStyle, and re-set display = none - see #9945