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

Re: [css-gcpm] order of text replace vs. whitespace processing

From: MURAKAMI Shinyu <murakami@antenna.co.jp>
Date: Wed, 01 Apr 2009 10:55:24 +0900
To: Hakon Wium Lie <howcome@opera.com>
Cc: www-style@w3.org
Message-Id: <20090401104321.2F71.C598BCD7@antenna.co.jp>
Håkon Wium Lie <howcome@opera.com> wrote on 2009/04/01 1:34:28
> Also sprach MURAKAMI Shinyu:
> 
>  > I think that the text-replace should be applied to the result of the
>  > white-space processing. Consider the following example:
>  > 
>  >     p { text-replace: "Soviet Union" "Russia"; }
>  > 
>  >    The following two paragraphs should be same (Hello Russia):
>  >     <p>Hello Soviet Union!</p>
>  >     <p>Hello Soviet
>  >      Union!</p>
>  > 
>  > Our implementation (AH Formatter) does this.
> 
> That seems useful. Does this mean that you don't replace in this
> case?:
> 
>   p { 
>     text-replace: "Soviet Union" "Russia"; 
>     white-space: pre;
>   }
> 
>   <p>Hello Soviet
>      Union!</p>
> 

Yes of course. The 'white-space:pre' prevents the replacement in such
case. I think it makes sense.

-- 
Shinyu Murakami
http://www.antennahouse.com
Antenna House Formatter
http://www.antenna.co.jp/AHF/en/
Received on Wednesday, 1 April 2009 01:56:11 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:17 GMT