[csswg-drafts] [css-text] What are the language-defined segment breaks for HTML? (#5147)

SimonSapin has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-text] What are the language-defined segment breaks for HTML? ==
https://drafts.csswg.org/css-text/#white-space
> Except where specified otherwise, White space processing in CSS affects only the document white space characters: spaces (U+0020), tabs (U+0009), and segment breaks. 

https://drafts.csswg.org/css-text/#segment-break
>  CSS does not define document segmentation rules. Segments can be separated by a particular newline sequence (such as a line feed or CRLF pair), or delimited by some other mechanism, such as the SGML RECORD-START and RECORD-END tokens. For CSS processing, each document language–defined segment break and each line feed (U+000A) in the text is treated as a segment break, which is then interpreted for rendering as specified by the white-space property. 

I understand that CSS wants to build abstractions in order to potentially support any document language, but making it the responsibility of those languages to specifically hook into those abstractions is not great as they might… not.

CTRL+F for "segment break" in the single-page version of https://html.spec.whatwg.org/ does not find anything. Does this mean that HTML does not have any language-specific segment break?

If css-text is not the right place to define this normatively it’d be helpful to point this out in a note.



Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5147 using your GitHub account

Received on Tuesday, 2 June 2020 14:40:50 UTC