Created attachment 8692656 [details] index.html User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/45.0.2454.101 Chrome/45.0.2454.101 Safari/537.36 Steps to reproduce: Within a div with position: absolute, add a div (A) which floats left and another non-floating div (B) on its right. https://jsfiddle.net/b5gqveo4/ Actual results: The last word of the text in div B wraps, it is not wide enough. Expected results: Div B should be wide enough to accommodate its text. The text should not wrap and does not in other browsers.
Reproduced on my developer edition, this behavior is wired. there is no reason to wrap the text as no width is set. nice catch, colin.
Status: UNCONFIRMED → NEW
QA Whiteboard: [bugday-20151130]
Component: Untriaged → Layout
Ever confirmed: true
Product: Firefox → Core
The basic issue is that computation of the preferred intrinsic width puts the float and the text on separate lines but then layout ends up with them next to each other, so the last word no longer fits. Per spec, the right behavior here is to do whatever. It's totally underdefined. This is a duplicate. Please find the original and mark this duplicate.
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 360262
You need to log in before you can comment on or make changes to this bug.