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

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

From: Håkon Wium Lie <howcome@opera.com>
Date: Tue, 31 Mar 2009 18:34:28 +0200
Message-ID: <18898.17940.23345.389013@opera.com>
To: MURAKAMI Shinyu <murakami@antenna.co.jp>
Cc: www-style@w3.org
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>

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Tuesday, 31 March 2009 16:35:12 GMT

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