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

[css21] Forced linebreaks and BiDi

From: Řyvind Stenhaug <oyvinds@opera.com>
Date: Tue, 24 Nov 2009 19:18:02 +0100
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <op.u3wvscilru61ud@oyvinds-desktop>
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"  
# 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).


<!doctype html>
<div style="white-space:pre">1&#x0639;

[1] HTML 5 currently does not:  
Řyvind Stenhaug
Core Norway, Opera Software ASA
Received on Tuesday, 24 November 2009 18:19:12 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:30 UTC