What is the most elegant way to check whether an element is in the normal flow using jQuery?
According to the CSS3 specification,
A box belongs t
I doubt theres a better way, but a different way would be:
1) Surround the element with a wrapper
2) Compare height and width of wrapper with wrapped element
For example:
$('#elementToTest').clone().addClass('clone').wrap('')
if($('#elementToTest.clone').height()>$('#elementToTest.clone').parent().height()){
//outside the normal flow
}