Nothing shown for u2028 (Line Separator) and u2029 (Paragraph Separator)
Categories
(Core :: Layout: Text and Fonts, defect, P3)
Tracking
()
People
(Reporter: s.kuchuk1, Unassigned)
References
()
Details
(Keywords: parity-chrome, Whiteboard: [INVALID?])
Reporter | ||
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
Reporter | ||
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
Comment 5•5 years ago
|
||
This is an old issue, but per CSS Text 3 (currently an Editor's Draft), CSS whitespace processing only affects spaces, tabs, and segment breaks, which include the Line Feed (always) and document-defined segment breaks (which in HTML includes CRLF).
It does not, for HTML or XML 1.0 documents, affect either U+2028 LINE SEPARATOR
or U+2029 PARAGRAPH SEPARATOR
. This means that these characters should not be collapsed and their semantics should be preserved.
Given Unicode line breaking rules, this would imply that a U+2028 and U+2029 in the source code of an HTML document should be rendered as a “hard” line break unaffected by the white-space
property; e.g., similarly to a BR
tag.
CSS Text 3 specifically calls this out:
Regardless of the
white-space
value, lines always break at each preserved forced break character: thus for all values, line-breaking behavior defined for the BK and NL line breaking classes in [UAX14] must be honored.
However, as best as I can tell (on macOS at least), Firefox currently does not render a line break for any of the characters in the BK line breaking class (note, though, that U+000C
is HTML ASCII whitespace and so may not be preserved). This appears to me to be a bug.
Updated•2 years ago
|
Description
•