If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

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

NEW
Unassigned

Status

()

Core
Layout: Text
7 years ago
7 years ago

People

(Reporter: generalmkii, Unassigned)

Tracking

({css2, testcase})

Trunk
css2, testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(3 attachments)

(Reporter)

Description

7 years ago
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
Created attachment 480507 [details]
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

Comment 3

7 years ago
Created attachment 480543 [details]
testcase (Almost Standards Mode)

This bug is "Almost Standards Mode" only

Comment 4

7 years ago
Created attachment 480544 [details]
testcase (Standards Mode)

Updated

7 years ago
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..

Comment 6

7 years ago
> This bug is "Almost Standards Mode" only

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