Closed
Bug 147968
Opened 23 years ago
Closed 23 years ago
CSS pseudo-element content strings do not display forced line-breaks
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: daren, Assigned: dbaron)
References
()
Details
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc2)
Gecko/20020510
BuildID: 2002051006
Mozilla Browser does not display the line-break special character "\A" in
content strings of CSS pseudo-elements :after and :before.
Maybe Mozilla doesn't render "\A" at all, other special characters (e.g.
Copyright "\A9") work, though.
Related specifications:
(http://www.w3.org/TR/REC-CSS2/generate.html#propdef-content)
Reproducible: Always
Steps to Reproduce:
Open the included page in Mozilla Browser
Actual Results: The "\A" is rendered as a space.
Expected Results: The "\A" should be rendered as a newline.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>bug reproduction for line-breaks in pseudo-element content</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
p:before { content:"After this should be a line-break. \A Before this should be
a line-break."; }
p:after { content:"After this should be a line-break. \A Before this should be a
line-break."; }
</style>
</head>
<body>
<p><strong>Paragraph.</strong></p>
</body>
</html>
| Assignee | ||
Comment 1•23 years ago
|
||
This is an error in the spec. The example needs to have 'white-space: pre' as
well. I belive the need for this was accepted by the working group. (Ian --
will this be corrected in the next version of CSS already, or do we need to
discuss it?)
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
| Assignee | ||
Comment 2•23 years ago
|
||
Actually reopening since I don't see it fixed in the draft.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Comment 3•23 years ago
|
||
http://www.w3.org/TR/css3-text/#white-space-props says:
Applies To: all elements and generated content
What more do we need?
Comment 4•23 years ago
|
||
so.. we should either confirm this or invalid it again or something.....
Comment 5•23 years ago
|
||
Very well. ;)
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•