W3C home > Mailing lists > Public > www-style@w3.org > September 2003

Re: :before and :after consideration for RTL languages,

From: fantasai <fantasai@escape.com>
Date: Sat, 20 Sep 2003 23:34:11 -0400
Message-ID: <3F6D1C33.9050609@escape.com>
To: www-style@w3.org

MN Venugopal-A18623 wrote:
> Hi All,
>  
>   i am trying to understand how one should interpret the :before and 
> :after content in case of RIGHT TO LEFT LANGUAGES.

Both cases should render the same, no matter what content is
used in place of 'before', 'after', and 'text':

Case 1:

   E:before {content: "before"}
   E:after  {content: "after"}

   <E>text</E>

Case 2:

   <E><E>before</E>text<E>after</E></E>

The Unicode BIDI algorithm and the CSS 'direction' and 'unicode-bidi'
properties will determine the directionality of the content.

~fantasai
Received on Saturday, 20 September 2003 23:34:16 GMT

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