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

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

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 ]
to:
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’
‘full-width’
‘full-size-kana’"

  - Florian

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

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