Open Bug 601438 Opened 14 years ago Updated 2 years ago

white-space:pre-line collapses new lines in certain cases (Almost Standards Mode)

Categories

(Core :: Layout: Text and Fonts, defect)

defect

Tracking

()

People

(Reporter: generalmkii, Unassigned)

References

()

Details

(Keywords: css2, testcase)

Attachments

(3 files)

User-Agent:       Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Win64; x64; Trident/5.0)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.5) Gecko/20091102 BRI/1 Firefox/3.5.5 (.NET CLR 3.5.30729)

A span with 2 new lines after it and then some bold text only shows 1 new line, adding additional new lines does not change the appearance.

Reproducible: Always

Steps to Reproduce:
1. apply white-space:pre-line; to a div
2. put a span within that div
3. put 2 new lines after the span, and then <b>text</b>
Actual Results:  
one new line shows

Expected Results:  
two new lines should show

Happens in every version of FF I tried, 3.5, 3.6 and 4.0 beta.
Component: General → Layout
Product: Firefox → Core
QA Contact: general → layout
Version: unspecified → Trunk
Attached file Reporter's Testcase
Per Bug 422804 one Line is okay, no?
No, this is a totally different issue, and looks like a bug.
Status: UNCONFIRMED → NEW
Component: Layout → Layout: Text
Ever confirmed: true
Keywords: css2
QA Contact: layout → layout.fonts-and-text
This bug is "Almost Standards Mode" only
Keywords: testcase
OS: Windows Vista → All
Hardware: x86_64 → All
Summary: white-space:pre-line collapses new lines in certain cases → white-space:pre-line collapses new lines in certain cases (Almost Standards Mode)
Ah, hmm.   The fun of quirky box models..
> This bug is "Almost Standards Mode" only

and quirksmode, I ought to add
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: