Testcase for jQuery Ticket 7618
dimension methods broken for % values of hidden elements
by jitter
HTML
<div id="test" style="display:none; width:100%"></div>
<div style="display:none; width:200px">
<div id="test2" style="width:95%"></div>
</div>
JavaScript
$("body").append("<p>#test " +
"Outer Width: " + $("#test").outerWidth() + "<br/>" +
"Inner Width: " + $("#test").innerWidth() + "<br/>" +
"Width: " + $("#test").width() + "</p>"
);
$("body").append("<p>#test2 " +
"Outer Width: " + $("#test2").outerWidth() + "<br/>" +
"Inner Width: " + $("#test2").innerWidth() + "<br/>" +
"Width: " + $("#test2").width() + "</p>"
);