Closed Bug 375497 Opened 17 years ago Closed 17 years ago

Line break incorrectly allowed between text and span

Categories

(Core :: Layout: Block and Inline, defect)

x86
macOS
defect
Not set
minor

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(2 files)

When this page is first loaded, it is line-broken between "a" and "b".  If I remove the body and put it back, the line break goes away.  The line break also goes away if I put a div around it all.  I chose the latter for the reference so the reftest pair could be free of scripts.

(This testcase is based on reftests/text-transform/capitalize-2.html, of all things.  The reduced testcase doesn't involve text-transform at all; it just happens that that reftest lacks a <div> or <p> tag.)
Attached file reference (with div)
Is the issue being "naked in body"?  That is, if you stick a width style on the <div>, does anything change?  If you put a flush between the text and the <span> in the <div>, does anything change?

Flags: blocking1.9?
> Is the issue being "naked in body"?  That is, if you stick a width style on the
> <div>, does anything change?

Oops.  The bug doesn't require being "naked in body", just being in a block with the right width.  I should have tested that.

> If you put a flush between the text and the
> <span> in the <div>, does anything change?

Flushing *before* "a" fixes it, but flushing between "a" and the span does not.
Is bug 375827 related?
Summary: Line break incorrectly allowed between text+span naked in <body> → Line break incorrectly allowed between text and span
Actually, I was wondering whether flushing between would make it appear even in the non-buggy testcase.  And yes, bug 375827 might be related.
I don't see this bug on my Mac near-trunk build.
WFM too.  Should the reftest pair be added to the test suite?
Flags: blocking1.9? → blocking1.9+
I don't we should add this to reftests.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
verified fixed using Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9b3pre) Gecko/2007123104 Minefield/3.0b3pre and the testcase from this bug - 
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: