Closed Bug 369421 Opened 18 years ago Closed 18 years ago

Right-floated <div> between two text nodes incorrectly offset downwards

Categories

(Firefox :: General, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 50630

People

(Reporter: frobar, Unassigned)

Details

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1 Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1 This example triggers the problem: <?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> Inner div </title> </head> <body> <div style="border: solid; padding: 10px;"> <div style="float: right; border: solid;"> inner div </div> Outer div 2 </div> </body> </html> Reproducible: Always Steps to Reproduce: Put a right-floated <div> between two text nodes and float it to the right, e.g. within another div Actual Results: The floated <div> is incorrectly offset downwards Expected Results: The floated <div> should stay within the encapsulating <div>
Ops, one line was omitted from the example. It should read <?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> Inner div </title> </head> <body> <div style="border: solid; padding: 10px;"> Outer div <div style="float: right; border: solid;"> inner div </div> Outer div 2 </div> </body> </html>
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.