Changes over time in jQuery's handling of outer width on hidden elements

by wheresrhys

HTML

<p></p>
<p style="display:none"></p>
<div style="display:none"><p></p></div>

CSS

p {
     width: 80px;
     padding: 2px   
}

JavaScript

$("p").each(function() {
    $this = $(this);
    $this.html($this.outerWidth());
}).css("display", "block");
$("div").css("display", "block");