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:

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

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

(where YERUSHALAYIM is actually in Hebrew).

In this case, after bidi reordering we have:

   <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.

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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:13 UTC