CSSReviews/CSS-Text3-Review

From SVG

CSS Text Level 3 - Review

  1. Example 1 is a nice demonstration of the complexity of text layout but falls short on illuminating what exactly is a "grapheme cluster". Explicitly stating what the grapheme clusters are in the example should fix this.
  2. It is strange that 'white-space' property has its own section. It would be better to combine it with the White Space processing details (especially since 'tab-size' is hidden in the latter).
      3. White Space
         Intro from 4
      3.1 The 'white-space' property.
      3.2 The 'tab-size' property.
      3.3 White space processing details.
     
  3. Note in 4.1.2 ("Note that the white...) doesn't obviously belong only to the section starting with "For other values...".
  4. In 6.2 section heading: 'word-wrap'/'overflow-wrap' but in 'Name:' the order is reversed. Order of properties should be same in both places.
  5. Note to SVG: Can 'text-anchor' be deprecated now that 'text-align' supports 'start' and 'end'? Or see how 'text-anchor' and 'text-align' can work seamlessly together.
  6. The examples in the specification are good. There could probably be more examples!
  7. More links! For example, in the 'hanging-punctuation' section, it would be useful for 'Ps', 'Pf', and 'Pi' to directly link to their definitions. Or, if that is not possible, include the definitions (e.g. Pf (Punctuation, Final) ).
  8. 'text-overflow' seems to be more appropriate for this spec than CSS3 UI.
  9. 'line-height' is a fairly important property for text layout. A note on where it is defined should probably be included in the intro. (BTW, how does one define line spacing for vertical text?)
  10. Mozilla has a new value for 'white-space' (-moz-pre-discard-newlines) that matches SVG 1.1's xml:space="preserve' behavior. Without this, SVG cannot recast xml:space="" in terms of 'white-space'. (Changing the meaning of xml:space="preserve" breaks too much existing content.)