Closed
Bug 25680
Opened 26 years ago
Closed 19 years ago
space before <br> at end of line with no room left gets wrapped to next line {ll} [INLINE]
Categories
(Core :: Layout, defect, P3)
Core
Layout
Tracking
()
RESOLVED
WORKSFORME
Future
People
(Reporter: fantasai.bugs, Assigned: attinasi)
References
()
Details
(4 keywords, Whiteboard: [Hixie-P4] relnote-devel)
Attachments
(2 files)
Overview Description:
At certain window widths, Mozilla adds an extra line break before <BR>.
Steps to Reproduce:
(Will be attaching a test case)
1) Open up Line Break Test in Mozilla, but don't maximize it.
2) Adjust the width of the window until the first line
breaks right after the period.
On Test A, you'll see everything line up.
3) *Slowly* narrow the window.
At one point, the sentence after the break (<BR>) will snap down.
4) If you keep narrowing it, the line will return.
5) The window needs to be readjusted for Tests B and C.
6) Test B behaves the same way--the only difference
is that it has one line of text.
7) Test C behaves as it should.
* The blue line represents the edge of the DIV, nothing more.
Build Date & Platform Bug Found:
Jan. 17, 2000 (Raptor) on WinNT4 (600x800 screen res)
Additional Builds and Platforms Tested On:
Jan. 28, 2000 on WinNT4
Comments:
Test A has a line break before the <BR>; Test B has a space.
Test C, which behaves correctly, has no whitespace before the <BR>.
Mozilla seems to be wrapping the <BR>'s line break to the next line,
which it should not do.
Comment 2•26 years ago
|
||
IE5 has the exact same behaviour. I think this is how it's supposed to work.
The space or line-break before the <BR> is significant, and it's this character
that is moved down causing the empty line.
Re-assigning to Kipp's bug list. mats is probably right, although I don't enough
of the subtleties to say for sure
Assignee: troy → kipp
Summary: Mozilla wraps <BR>'s line break → {ll}Mozilla wraps <BR>'s line break
Updated•25 years ago
|
Summary: {ll}Mozilla wraps <BR>'s line break → Mozilla wraps <BR>'s line break {ll}
need to examine this bug to see if it's valid, or if we're behaving properly
redistributing bugs across future milestones, sorry for the spam
Target Milestone: M20 → M22
This bug has been marked "future" because the original netscape engineer working
on this is over-burdened. If you feel this is an error, that you or another
known resource will be working on this bug,or if it blocks your work in some way
-- please attach your concern to the bug for reconsideration.
Target Milestone: M22 → Future
Comment 9•25 years ago
|
||
Correcting summary so that I don't get worried when I see it marked Future...
Summary: Mozilla wraps <BR>'s line break {ll} → Mozilla wraps spaces after <BR>s {ll}
Summary: Mozilla wraps spaces after <BR>s {ll} → Mozilla wraps spaces before <BR>s {ll}
Updated•25 years ago
|
Blocks: html4.01
Severity: trivial → minor
OS: Windows NT → All
QA Contact: petersen → ian
Hardware: PC → All
Summary: Mozilla wraps spaces before <BR>s {ll} → space before <br> at end of line with no room left gets wrapped to next line {ll} [INLINE]
Whiteboard: relnote-devel
Comment 10•25 years ago
|
||
This was also reported in bug 53985 which 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 25680 for more details. Workaround: remove any spaces
before a <br> element, or avoid use of this element altogether.
Comment 11•25 years ago
|
||
*** Bug 53985 has been marked as a duplicate of this bug. ***
Comment 12•25 years ago
|
||
Nom. nsbeta1. We're messing up on the handling of legacy content here.
Updated•24 years ago
|
Whiteboard: relnote-devel → [Hixie-P4] relnote-devel
Comment 13•24 years ago
|
||
Build reassigning Buster's bugs to Marc.
Assignee: buster → attinasi
Status: ASSIGNED → NEW
![]() |
||
Comment 14•23 years ago
|
||
*** Bug 137957 has been marked as a duplicate of this bug. ***
Comment 15•23 years ago
|
||
The URL broke. What specification, exactly, is being violated here?
Comment 16•23 years ago
|
||
New test URI:
http://software.hixie.ch/utilities/cgi/test-tools/linemodel1?mode=standard
This is WORKSFORME now.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
Verified worksforme, based on attachment 4708 [details].
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 18•22 years ago
|
||
Test B still fails. (build: 2003021880 Win2K) Reopening. Also, Stanimir Stamenkov
has posted a nice testcase on n.p.m.layout, which I'm hoping will find its way
here, with comments and all.
Status: VERIFIED → REOPENED
Resolution: WORKSFORME → ---
Comment 19•22 years ago
|
||
Yes
Test B fails again (W2K Pro)
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312
Comment 20•22 years ago
|
||
Extra new line when the container is shrink to nearly at the end of a line:
first longer line<br>
second line
and
first longer line
<br>second line
In the second case if you shrink the container nearly the end of the first line
there will be inserted visually an extra new line. However if you consider the
following identical cases:
first line<br>
second longer line
and
first line
<br>second longer line
Shrinking the container nearly the end of the first line doesn't cause an extra
new line to appear between the first and the second one.
Seems if the second line is longer and is already wrapped while reaching the
end of the first one there's no extra blank space inserted.
Comment 21•22 years ago
|
||
I have a pair of stupid websites that might demonstrate the problem more lucidly...
http://dtcurrie.net/brtest/
http://dtcurrie.net/brtest2/
In one of them there is a space between the top two chimp pictures; in the other
there is none. Yet the only difference between them is a carriage return before
and after the <BR> tag in question.
This bug ocurrs in Mozilla build ID: 2004012505 on Mac v10.3.2.
![]() |
||
Comment 22•19 years ago
|
||
Please retest in tomorrow's builds? Bug 132561 should have fixed this.
Comment 23•19 years ago
|
||
I can't find the nightly which fixes this, but the testcases do WFM with the current trunk.
Status: REOPENED → RESOLVED
Closed: 23 years ago → 19 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•