W3C home > Mailing lists > Public > www-style@w3.org > November 2009

Re: [css21] Forced linebreaks and BiDi

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 24 Nov 2009 15:14:43 -0800
Message-ID: <4B0C68E3.9060406@inkedblade.net>
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&#x0639;
> 1&#x0639;</div>

Filed CSS2.1 Issue 145: wrt BIDI treat forced line breaks as LS not CR/LF

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>

Received on Tuesday, 24 November 2009 23:15:18 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:40 UTC