W3C home > Mailing lists > Public > www-style@w3.org > April 2004

:first-letter and bidi reordering interaction

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 19 Apr 2004 15:28:46 -0500
Message-ID: <4084367E.2020701@mit.edu>
To: www-style Mailing List <www-style@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:29 GMT