Can someone help me with this code issue?
<!doctype html>
<title>Test case</title>
<div style="float: left">
<div style="float: left;">Short.</div>
<div></div>
<div style="overflow: hidden;">ALongText.</div>
</div>
I am facing an unexpected result in Chrome (44.0.2403.107 m), It displays like:
Short.ALon
I thought the parent div would adjust to contain all three children elements:
Short.ALongText.
Alternatively, I expected the third div to be pushed down as it does not fit within the container:
Short.
ALongText.
Any idea why Chrome is cutting off the div?
Please note that the width of the parent element matches the "natural size" of the last child div, excluding the floating child.