- From: fantasai <fantasai.lists@inkedblade.net>
- Date: Tue, 24 Nov 2009 15:14:43 -0800
- To: Øyvind Stenhaug <oyvinds@opera.com>
- CC: "www-style@w3.org" <www-style@w3.org>
Øyvind Stenhaug wrote: > CSS 2.1 (<http://www.w3.org/TR/CSS21/visuren.html#direction>) says: > > # User agents that support bidirectional text must apply the Unicode > # bidirectional algorithm to every sequence of inline boxes > uninterrupted by a > # forced line break or block boundary. This sequence forms the > "paragraph" unit > # in the bidirectional algorithm. > > By my reading this implies that two text segments separated by a line > feed would each have the bidi algorithm applied to them separately. From > what I can tell only currently WebKit does so, the others I tested > (Gecko, Presto, Trident) all seem to keep them as one paragraph. > > The spec also says HTML4 "defines bidirectionality behavior for HTML > elements", and <http://www.w3.org/TR/html4/struct/text.html#edef-BR> > explicitly states that <BR> "should behave the same way the [ISO10646] > LINE SEPARATOR character behaves in the bidirectional algorithm"[1]. It > seems inconsistent to choose another approach for other types of > linebreak, especially given the expected UA styling of <br> (as given by > both CSS2.1 and HTML5). > > Demo: > > <!doctype html> > <div style="white-space:pre">1ع > 1ع</div> Filed CSS2.1 Issue 145: wrt BIDI treat forced line breaks as LS not CR/LF http://wiki.csswg.org/spec/css2.1#issue-145 Here's a question: If a block splits an inline, should that be interpreted as a Line Separator or a Paragraph Separator? <p>Some text here <blockquote>Some block item</blockquote> More text here</p> ~fantasai
Received on Tuesday, 24 November 2009 23:15:18 UTC