Closed
Bug 1228440
Opened 9 years ago
Closed 8 years ago
text within div with position: absolute wraps when it shouldn't
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 360262
People
(Reporter: colindoig, Unassigned)
Details
(Whiteboard: DUPEME)
Attachments
(1 file)
583 bytes,
text/html
|
Details |
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.
Comment 1•9 years ago
|
||
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
Comment 2•9 years ago
|
||
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.
Whiteboard: DUPEME
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•