Closed Bug 330706 Opened 19 years ago Closed 19 years ago

CSS Style white-space:pre-wrap is not supported

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 261081

People

(Reporter: bkausbk, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1

Sequences of whitespace should not be collapsed and lines are broken at new lines and as necessary to fill line boxes. It seems that this style is not supported or it does not work.

Reproducible: Always

Steps to Reproduce:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>CSS Style "white-space" Bug</title>
</head>

<body>
<p style="background-color:#00CCFF; white-space:pre-wrap">This is a demonstration showing the 'white-space' Style with the attribute <strong>pre-wrap</strong>. Sequences of whitespace should not be collapsed and lines are broken at new lines and as necessary to fill line boxes. But Firefox Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1 don't break on new lines (\n) as seen here:
This is a normal line break, and this 

a double line break.</p>
</body>
</html>

Actual Results:  
Sequences of whitespaces are collapsed and new lines are not broken

Expected Results:  
Sequences of whitespace should not be collapsed and lines are broken at new lines and as necessary to fill line boxes.
Attached file Html File Testcase
This is the Testcase

*** This bug has been marked as a duplicate of 261081 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: