Re: bidi-override scope in CSS2 and CSS 2.1

[I'm mostly offline at the moment due to travel]

Given the spec text that Richard has copied in his email,
what Bert says below seems to be correct, but I have tried
to make some sense of it, and can't. What's the reason
for having bidi-override apply to the direct inline descendents
of an element only? It doesn't seem to make sense from an
user point of view, and it doesn't seem to make sense from
an implementer's point of view, and I can't immagine that
we designed it that way when we designed it (which was
9 or 10 years ago. Any explanations, anybody?

Regards,    Martin.

At 01:44 06/09/09, Bert Bos wrote:
>
>On Friday 08 September 2006 17:57, Richard Ishida wrote:
>> Suppose my stylesheet says that where I have dir="rlo" I apply a bidi
>> override to my (say) XHTML2 text.
>
>You mean the style sheet has the following?
>
>    [dir=rlo] { unicode-bidi: bidi-override }
>
>>
>> CSS 2 says:
>
>Forget about the old CSS2 Rec. It is progressively being obsoleted first 
>by the revised edition ("CSS 2.1") and then by the various CSS3 modules 
>as they arrive. (Unfortunately, CSS 2.1 is still a WD, but in practice 
>it has much fewer bugs than the old Rec.)
>
>> CSS 2.1 says:
>>
>> "For inline-level elements this creates an override. For block-level,
>> table-cell, table-caption, or inline-block elements this creates an
>> override for inline-level descendents not within another block-level,
>> table-cell, table-caption, or inline-block element."
>>
>> Does that mean that only the text "Inline only text." in this example
>> below actually has the bidi algorithm overridden?
>>
>> <div dir="rlo">Inline only text.
>>      <p>Some text in a block.</p>
>>      <p>Some more text.</p>
>>      </div>
>
>Correct. (Under the assumption that the Ps are block-level, which they 
>normally are.)
>
>
>
>Bert
>-- 
>  Bert Bos                                ( W 3 C ) http://www.w3.org/
>  http://www.w3.org/people/bos                              W3C/ERCIM
>  bert@w3.org                             2004 Rt des Lucioles / BP 93
>  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France


#-#-#  Martin J. Du"rst, Assoc. Professor, Aoyama Gakuin University
#-#-#  http://www.sw.it.aoyama.ac.jp       mailto:duerst@it.aoyama.ac.jp     

Received on Monday, 11 September 2006 06:06:37 UTC