W3C home > Mailing lists > Public > www-style@w3.org > February 2012

[css3-text] combining transforms

From: Florian Rivoal <florianr@opera.com>
Date: Tue, 07 Feb 2012 10:03:47 +0100
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <op.v9awsllk4p7avi@eeeflorian>
The text-transform property allows some simple forms of combining  
transforms. It is useful, but not fundamental to the way text-transform  

My proposal for @text-transform [1] also includes a way to combine  
transforms, as that is needed to make a number of meaningful custom  

I think that the mechanism proposed in the @-rule is more flexible. It  
allows control over the order in which the combined transforms are  
applied, which also makes it scale better as new transforms are  
introduced, as the author is not limited by the predefined combinations  
hard-coded in the spec.

I think we should therefore drop the ability to combine transforms in the  
property in favor of the mechanism proposed in @text-transform.

This would mean changing the grammar from:
none | [ [ capitalize | uppercase | lowercase ] || full-width ||  
full-size-kana ]
none | capitalize | uppercase | lowercase | full-width | full-size-kana

and dropping this piece of prose:

"When multiple values are specified and therefore multiple transformations  
need to be applied, they are applied in the following order:
‘capitalize’, ‘uppercase’, and ‘lowercase’

  - Florian

[1] http://wiki.csswg.org/ideas/at-text-transform
Received on Tuesday, 7 February 2012 09:02:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:50:15 UTC