Re: Advanced font features and related text features in CSS levels 3 and 4 [css3-fonts] [CSS3 Text] [css3-text-layout] [css4-fonts] [css4-text] [css4-text-layout]

Also sprach Etan Wexler:

 > So CSS should specify a set of features that is compatible with existing
 > CSS syntax and semantics, is mnemonic, and provides uniform access to
 > features which the font formats specify differently.
 > 
 > Hence:
 > 
 > Name: font-numeral-case (font-numeral-style?)
 > Value: auto | old-style | lining
 > Initial: auto
 > Applies to: all elements
 > Inherited: yes
 > Percentages: N/A
 > Media: visual
 > Computed value: as specified
 > 
 > Name: font-numeral-spacing (font-numeral-width?)
 > Value: auto | proportional | tabular
 > Initial: auto
 > Applies to: all elements
 > Inherited: yes
 > Percentages: N/A
 > Media: visual
 > Computed value: as specified
 > 
 > Name: font-variant
 > New values: auto | all-small-caps | caps-to-small-caps
 >   | petite-caps | all-petite-caps | caps-to-petite-caps
 >   | titling-caps | all-titling-caps
 >   | tall-caps | all-tall-caps
 > Initial: auto
 > Applies to: all elements
 > Inherited: yes
 > Percentages: N/A
 > Media: visual
 > Computed value: as specified
 > 
 > Name: font-punctuation-case
 > Value: auto | in-mixed-company | caps | small-caps
 > Initial: auto
 > Applies to: all elements
 > Inherited: yes
 > Percentages: N/A
 > Media: visual
 > Computed value: as specified
 > 
 > Name: font-zero-style
 > Value: auto | no-slash | slash
 > Initial: auto
 > Applies to: all elements
 > Inherited: yes
 > Percentages: N/A
 > Media: visual
 > Computed value: as specified
 > 
 > Name: font-diacritics
 > Value: normal | hidden | decomposed
 > Initial: normal
 > Applies to: all elements
 > Inherited: yes
 > Percentages: N/A
 > Media: visual
 > Computed value: as specified
 > 
 > Name: font-randomness
 > Value: none | random
 > Initial: none
 > Applies to: all elements
 > Inherited: yes
 > Percentages: N/A
 > Media: visual
 > Computed value: as specified
 > 
 > Name: font-ligatures
 > Value: none | required | normal | discretionary
 > Initial: normal
 > Applies to: all elements
 > Inherited: yes
 > Percentages: N/A
 > Media: visual
 > Computed value: as specified

In [1] I proposed:

   font-variant-caps: normal | small-caps          /* '-' added */
   font-variant-digits: normal | oldstyle | lining
   font-variant-width: normal | proportional
   font-variant-swash: normal | swash
   font-variant-ligatures: normal | standard | alternate

It seems that our approach is similar, although I belive that using
'font-variant' as a shorthand property is beneficial. This is all
about variants, no?

[1] http://lists.w3.org/Archives/Public/www-style/2008Jan/0380.html

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome

Received on Tuesday, 10 June 2008 14:09:08 UTC