W3C home > Mailing lists > Public > www-style@w3.org > August 2013

[css3-text] incorrect order of text operations

From: John Daggett <jdaggett@mozilla.com>
Date: Thu, 15 Aug 2013 07:16:18 -0700 (PDT)
To: www-style list <www-style@w3.org>
Message-ID: <2017696961.3313948.1376576178659.JavaMail.zimbra@mozilla.com>

The CSS3 Text spec has a normative appendix listing the ordering of text operations:

# 1. white space processing part I (pre-wrapping)
# 2. text combination [CSS3-WRITING-MODES]
# 3. text transformation
# 4. text wrapping while applying per line:
#    1. indentation
#    2. bidirectional reordering [CSS21] / [CSS3-WRITING-MODES]
#    3. white space processing part II
#    4. text orientation [CSS3-WRITING-MODES]
#    5. ‘letter-spacing’ and ‘word-spacing’
#    6. font/glyph selection and positioning [CSS21] / [CSS3-FONTS]
#    7. hanging punctuation 
# 5. justification (which may affect glyph selection and/or text
#    wrapping, looping back into that step)
# 6. text alignment 

There are a couple problems here:

1. The handling of 'text-combine-horizontal' takes place with
   'text-orientation', it's the point at which a text run is sliced
   into individual spans that are either horizontal or vertical in
   nature. It definitely happens *after* 'text-transform'.

2. Text alignment and justification should be grouped in the same
   step.  I think the steps for handling both of these are intertwined
   and it would be simpler to just group them together rather than
   making the handling of one normatively precede the other.


John Daggett
Received on Thursday, 15 August 2013 14:16:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:33 UTC