:first-letter and bidi reordering interaction

An interesting question that came up [1] was what should happen in the 
following situation:

Stylesheet:
   p { color: red; direction: ltr }
   p:first-letter { color: green }

DOM:
   <p>"YERUSHALAYIM" is the Hebrew word for "Jerusalem."</p>

(where YERUSHALAYIM is actually in Hebrew).

In this case, after bidi reordering we have:

Boxes:
   <p>"MIYALAHSUREY" is the Hebrew word for "Jerusalem."</p>

where the quote that comes next to the "M" is the one that came next to 
the "Y" in the DOM.

So in this case, what should be green, exactly?  And why?  In the 
absence of bidi reordering the initial '"' and the 'Y' would be green, 
but in this case that seems a little bizarre.... though implied by a 
literal interpretation of the fictional tag sequence language in the spec.

-Boris

Received on Monday, 19 April 2004 16:28:59 UTC