Closed Bug 53985 Opened 25 years ago Closed 24 years ago

space before <br> at end of line with no room left gets wrapped to next line

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

VERIFIED DUPLICATE of bug 25680
Future

People

(Reporter: ian, Assigned: buster)

References

()

Details

(Keywords: css1, relnote, testcase, Whiteboard: relnote-devel)

This broke out of bug 13097. The code fragment: <div> some text just long enough to fit on the line <br> some more text </div> ...renders as: some text just long enough to fit on the line some more text Note the extra blank line. This is easily reproducable if you use images instead of text, and a fixed width DIV or table cell to hold them in. STEPS TO REPRODUCE: See test case: http://www.bath.ac.uk/%7Epy8ieh/cgi/development/tests/linemodel1?mode=standard EXPECTED RESULTS: Only a few pixels between each line, except the last one in each block (<br><br>) which should have a whole blank line. ACTUAL RESULTS: As expected except for the " <br>" cases when the width of the line is equal to or less than the length of the "text" (actually an image) on the line. TESTED ON: Known to be broken on All/All.
RELEASE NOTE ITEM: Mozilla currently does not ignore whitespace before a <br>, which in certain rare cases can cause an extra blank line to be inserted in the rendering. See bug 53985 for more details. Workaround: remove any spaces before a <br> element, or avoid use of this element altogether.
Blocks: html4.01
QA Contact: petersen → py8ieh=bugzilla
Target Milestone: --- → Future
Whiteboard: relnote-devel
Hixie, isn't this kinda the same as bug 25680?
good catch! *** This bug has been marked as a duplicate of 25680 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
and VERIFIED, thanks Hixie.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.