diff --git a/css3-text/Overview.html b/css3-text/Overview.html index 6b452863d85..4be373d959c 100644 --- a/css3-text/Overview.html +++ b/css3-text/Overview.html @@ -90,7 +90,7 @@

Editor's Draft 13 January
This version:
$Date: - 2011/01/03 18:03:29 $ (CVS $Revision$) @@ -294,11 +294,15 @@

Table of Contents

  • 7.1. Text Alignment: the ‘text-align’ property -
  • 7.2. Last Line +
  • 7.2. First + Line Alignment: the ‘text-align-first’ property + +
  • 7.3. Last Line Alignment: the ‘text-align-last’ property -
  • 7.3. Justification +
  • 7.4. Justification Method: the ‘text-justify’ property @@ -402,11 +406,8 @@

    Table of Contents

  • Changes
  • Acknowledgements @@ -1736,7 +1737,68 @@

    7.1. Text Alignment: the the axis instead of using the "character directionality", which is not defined for punctuation... -

    7.2. Last Line Alignment: +

    7.2. First Line + Alignment: the ‘text-align-first’ property

    + + + + + + + + + + + +
    Name: + + text-align-first + +
    Value: + + auto | start + +
    Initial: + + auto + +
    Applies to: + + block containers + +
    Inherited: + + yes + +
    Percentages: + + N/A + +
    Media: + + visual + +
    Computed value: + + specified value +
    + +

    This property describes how the first line of a block or a line right + after a forced line break is aligned. Values have the following meanings: + +

    +
    auto + +
    Use the alignment given by ‘text-align’. + +
    start + +
    The inline contents are aligned to the start edge of the line box. +
    + +

    7.3. Last Line Alignment: the ‘text-align-last’ property

    @@ -1750,12 +1812,12 @@

    7.2. Last Line Alignment: Value: - start | end | left | right | center | justify + auto | start | end | left | right | center | justify Initial: - start + auto Applies to: @@ -1784,14 +1846,20 @@

    7.2. Last Line Alignment:

    This property describes how the last line of a block or a line right - before a forced line break is aligned when text-align is set to ‘justify’. Values have the same meaning as for - text-align. - -

    7.3. Justification Method: + before a forced line break is aligned. ‘auto’ is equivalent to the value of the ‘text-align’ + property except when ‘text-align’ is set to ‘justify’, in which case it is ‘center’ when ‘text-justify’ is ‘distribute’ and ‘start’ otherwise. All other values have the same + meanings as in ‘text-align’. + +

    7.4. Justification Method: the ‘text-justify’ property

    @@ -1839,15 +1907,15 @@

    7.3. Justification Method: specified value -

    This property selects the justification method used when text-align is set to justify. The - property applies to block containers, but the UA may (but is not required - to) also support it on inline elements. It takes the following values: +

    This property selects the justification method used when a line's + alignment is set to ‘justify’. (See + ‘text-align’.) The property applies to + block containers, but the UA may (but is not required to) also support it + on inline elements. It takes the following values:

    -
    auto +
    auto
    The UA determines the justification algorithm to follow, based on a balance between performance and adequate presentation quality. @@ -1985,10 +2053,10 @@

    7.3. Justification Method: aligned as specified by the text-align-last property (or as - ‘start’ if ‘auto’ if ‘text-align-last’ is ‘justify’). + class=css>justify’).

    The expansion opportunity priorities for values of ‘text-justify’ @@ -2682,7 +2750,7 @@

    8.3. Fullwidth
    Do not trim or kern the blank half of fullwidth opening or closing punctuation glyphs. -
    start +
    start
    Trim (kern) the blank half of fullwidth opening punctuation at the beginning of each line. @@ -4477,315 +4545,19 @@

    11.1. Changes

    -

    Changes from the May 2003 CSS3 Text - CR

    - -

    Much of the text has been rewritten or severely revised, so all changes - will not be listed here. Highlights include: - -

    - -

    Sections relating to bidirectional and vertical - text layout will be moved to a separate Writing Modes module. These - features may change greatly from the last revision, but they have not been - dropped. The vertical text feature, for example, will likely be based on - the methods described in Unicode Technical Note #22. - -

    The text-script property has been dropped, - since it does not belong in the style layer. - -

    Controls over - kerning have been moved to the CSS Fonts Module. - -

    The line grid properties - have been removed. There is currently no plan to add them back, although a - document grid feature may be added to future CSS modules. -

    Changes from the March 2007 CSS3 + href="http://www.w3.org/TR/2007/WD-css3-text-20070306/">October 2010 CSS3 Text WD

    Major changes include:

      -
    • White space collapsing rules have been sync'ed with updates to CSS2.1, - and the introductory prose rewritten. - -
    • Resplit ‘word-break’ into ‘line-break’ and - ‘word-break’ controls, affecting CJK and - non-CJK scripts respectively. This is very close to IE's implementation - (hence the somewhat confusing names), with the exception that - ‘keep-all’ functionality, which - affects CJK scripts, was moved from ‘word-break’ to ‘line-break’. - -
    • Added ‘auto’ value to - ‘line-break’, which allows the UA to vary - breaking strictness based on the effective line length. - -
    • Added ‘match-parent’ keyword - to ‘text-align’ to address some bidi use - cases such as aligning lists. - -
    • Allow keyword and <string> to be specified jointly for ‘text-align’ to - handle degenerate cases. - -
    • Added ‘trim’ keyword to ‘text-justify’ - as a replacement to ‘text-justify-trim’. - -
    • Removed ‘tibetan’ keyword to - ‘text-justify’. - -
    • Revised ‘text-justify’ section. - -
    • Added ‘allow-end’ value to - ‘punctuation-trim’. - -
    • Re-added ‘text-autospace’ property, and added new - ‘punctuation’ keyword. - -
    • Added ‘each-line’ keyword to ‘text-indent’. - -
    • Linked ‘text-shadow’ definition to ‘box-shadow’ definition. +
    • Added ‘auto’ value to ‘text-align-last’. -
    • Renamed values for ‘hanging-punctuation’ to be clearer; added - ‘allow-end’/‘force-end’ distinction. - -
    • Wrote out ‘text-decoration’ section. - -
    • Expanded ‘text-emphasis’ controls. - -
    • Drafted syntax for ‘text-overflow’. - -
    • Added back ‘text-transform’ with new values for - ‘fullwidth’ and ‘large-kana’. +
    • Added ‘text-align-first’.

    Acknowledgements

    @@ -5021,12 +4793,27 @@

    Appendix B: Property index

    visual + + text-align-first + + auto | start + + auto + + block containers + + yes + + N/A + + visual + text-align-last - start | end | left | right | center | justify + auto | start | end | left | right | center | justify - start + auto block containers @@ -5432,6 +5219,9 @@

    Index

  • authoring tool, 2. +
  • auto’, 7.2. +
  • collapsible, 4.2. @@ -5439,7 +5229,7 @@

    Index

    title=each-line>9.1.
  • expansion opportunities, 7.3. + title="expansion opportunities">7.4.
  • fullwidth closing punctuation, 8.3. -
  • punctuation-trim:start, punctuation-trim:start, 8.3.
  • renderer, 2. @@ -5537,6 +5327,9 @@

    Index

  • <spacing-limit>:normal, 8. +
  • start’, 7.2. +
  • style sheet
    • as conformance class, 7.1. +
    • text-align-first, 7.2. +
    • text-align:justify, 7.1.
    • text-align-last, 7.2. + title=text-align-last>7.3.
    • text-align:left, 7.1. @@ -5671,31 +5467,31 @@

      Index

      title=text-indent>9.1.
    • text-justify, 7.3. + title=text-justify>7.4. -
    • text-justify:auto, 7.3. +
    • text-justify:auto, 7.4.
    • text-justify:distribute, 7.3. + title="text-justify:distribute">7.4.
    • text-justify:inter-cluster, 7.3. + title="text-justify:inter-cluster">7.4.
    • text-justify:inter-ideographic, 7.3. + title="text-justify:inter-ideographic">7.4.
    • text-justify:inter-word, 7.3. + title="text-justify:inter-word">7.4.
    • text-justify:kashida, 7.3. + title="text-justify:kashida">7.4.
    • text-justify:none, 7.3. + title="text-justify:none">7.4.
    • text-justify:trim, 7.3. + title="text-justify:trim">7.4.
    • text-outline, 10.4. diff --git a/css3-text/Overview.src.html b/css3-text/Overview.src.html index 5de5878df30..9ce0d82cc5d 100644 --- a/css3-text/Overview.src.html +++ b/css3-text/Overview.src.html @@ -1226,6 +1226,56 @@

      the axis instead of using the "character directionality", which is not defined for punctuation...

      +

      + First Line Alignment: the 'text-align-first' property

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Name:text-align-first
      Value:auto | start +
      Initial:auto
      Applies to:block containers
      Inherited:yes
      Percentages:N/A
      Media:visual
      Computed value:specified value
      + +

      This property describes how the first line of a block or a line right after + a forced line break is aligned. Values have the following meanings: +

      +
      ''auto''
      +
      Use the alignment given by 'text-align'.
      +
      ''start''
      +
      The inline contents are aligned to the start edge of the line box.
      +
      +

      Last Line Alignment: the 'text-align-last' property

      @@ -1237,12 +1287,12 @@

      Value: - start | end | left | right | center | justify + auto | start | end | left | right | center | justify Initial: - start + auto Applies to: @@ -1267,11 +1317,12 @@

      -

      This property describes how the last line of a block or a line right before - a forced line break is aligned when - 'text-align' is set to 'justify'. - Values have the same meaning as for - 'text-align'.

      +

      This property describes how the last line of a block or a line + right before a forced line break is aligned. ''auto'' is + equivalent to the value of the 'text-align' property except when + 'text-align' is set to ''justify'', in which case it is ''center'' + when 'text-justify' is ''distribute'' and ''start'' otherwise. + All other values have the same meanings as in 'text-align'.

      Justification Method: the 'text-justify' property

      @@ -1316,9 +1367,8 @@

      -

      This property selects the justification method used when - 'text-align' - is set to 'justify'. +

      This property selects the justification method used when a line's + alignment is set to ''justify''. (See 'text-align'.) The property applies to block containers, but the UA may (but is not required to) also support it on inline elements. It takes the following values:

      @@ -1432,7 +1482,7 @@

      stretched to the full width of the line box, then they must be aligned as specified by the 'text-align-last' - property (or as 'start' if 'text-align-last' is 'justify').

      + property (or as ''auto'' if 'text-align-last' is ''justify'').

      The expansion opportunity priorities for values of 'text-justify' are given in the table below. Space must be distributed evenly @@ -3454,189 +3504,15 @@

      Changes

      -

      - Changes from the May - 2003 CSS3 Text CR

      - -

      Much of the text has been rewritten or severely revised, so all changes - will not be listed here. Highlights include:

      -
        -
      • The 'line-break' - and 'word-break-*' - properties have been reorganized and redesigned as - 'line-break' and - 'word-break' property.
      • -
      • The 'wrap-option' - property has been replaced by the - 'text-wrap' and - 'word-break' property.
      • -
      • Added 'auto' value to 'line-break', which allows the UA to vary - breaking strictness based on the effective line length. -
      • The 'linefeed-treatment', - 'white-space-treatment', - and 'all-space-treatment' - properties have been replaced by the - 'white-space-collapsing' property.
      • -
      • The 'min-font-size' - and 'max-font-size' - properties have been delegated to the next revision of the - CSS3 Fonts module. -
      • Change 'text-align' property's vertical text behavior for the 'left' and 'right' - values to be relative to LTR text rather than relative to the beginning - of the line stack. -
      • Added 'match-parent' keyword to 'text-align' to address some bidi - use cases such as aligning lists. -
      • Allow keyword and <string> to be specified jointly for - 'text-align' to handle degenerate cases. -
      • The 'size' value has been removed from the - 'text-align-last' - property. -
      • The 'newspaper' value for 'text-justify' - has been dropped in favor of using minimum and maximum limits set on - the 'word-spacing' and - 'letter-spacing' - properties to guide justification. -
      • Added ''trim'' keyword to 'text-justify' as a replacement to - 'text-justify-trim'. -
      • Removed ''tibetan'' keyword to 'text-justify'. -
      • The 'word-spacing' - and 'letter-spacing' - now take percentage values.
      • -
      • The new 'text-wrap' property's - 'suppress' value allows authors to suppress text wrapping within an - element with respect to its surrounding text without forbidding - correctly-restricted breaks when they are needed. -
      • The automatic line break conversions - specified in the white space processing - rules have been changed to try not to break existing East - and Southeast Asian content. Explicit control of these rules through - the 'linefeed-treatment' - property has been removed because style sheets should not be expected - to adapt to the source code formatting style. -
      • Text justification has been much more - explicitly specified with prioritized expansion opportunities. -
      • 'text-justify-trim' has been dropped - in favor of the ''trim'' keyword for the 'text-justify' property. -
      • Added ''end'' and ''allow-end'' value to 'punctuation-trim'. -
      • 'kerning-mode: contextual' - has been replaced with 'punctuation-trim: adjacent'. - Any further controls for kerning will likely be delegated to the Fonts - module. -
      • Added ''punctuation'' keyword to 'text-autospace' property. -
      • The text - decoration properties for controlling underline/overline/strike-through - line decorations have been replaced by a new - set of properties and the prose has been aligned with CSS2.1. -
      • The 'text-shadow' property now inherits, - which makes more sense and is consistent with recent implementation. - The default color is now UA-specified, which is more reasonable than - defaulting to the current text color. - The definition now also mentions that it applies to text decoration - and makes a few minor clarifications. -
      • The 'text-outline' property has been added - in response to feedback - from the Timed-Text WG and Ada Chan. Its design derives from a - discussion - of requirements within the CSS Working Group. -
      • The 'text-emphasis-*' properties have been - added to replace the - 'font-emphasis' - property from the CSS3 Fonts module. -
      • The definition for 'text-indent' has been - replaced with the precise text - sent - in by Ian Hickson and fantasai on 8 March 2003 - (minus - the 'text-align' dependence rules). -
      • Added ''each-line'' keyword to 'text-indent'. -
      • The 'hanging-punctuation' property - has been redesigned with several combinable values instead of - ''start'', ''end'', and ''both'' to eliminate the script and language - dependencies. -
      • The 'text-overflow' properties have - been compressed into one property and given a much more precise - specified behavior. -
      • Added ''fullwidth'' and ''large-kana'' to 'text-transform' property. -
      - -

      - - - - - - - - - - - Sections relating to bidirectional and vertical text layout - will be moved to a separate Writing Modes module. These features may - change greatly from the last revision, but they have not been dropped. - The vertical text feature, for example, will likely be based on the - methods described in Unicode - Technical Note #22.

      - -

      - The text-script property has been dropped, since it does not - belong in the style layer. - -

      - - - - - - Controls over kerning have been moved to the - CSS Fonts Module.

      - -

      - - - - - - - - The line grid properties have been removed. There is currently no - plan to add them back, although a document grid feature may be added - to future CSS modules.

      -

      - Changes from the March - 2007 CSS3 Text WD

      + Changes from the October + 2010 CSS3 Text WD
  • Major changes include:

      -
    • White space collapsing rules have been sync'ed with updates to CSS2.1, - and the introductory prose rewritten. -
    • Resplit 'word-break' into 'line-break' and 'word-break' controls, - affecting CJK and non-CJK scripts respectively. This is very close - to IE's implementation (hence the somewhat confusing names), with - the exception that ''keep-all'' functionality, which affects CJK - scripts, was moved from 'word-break' to 'line-break'. -
    • Added 'auto' value to 'line-break', which allows the UA to vary - breaking strictness based on the effective line length. -
    • Added 'match-parent' keyword to 'text-align' to address some bidi - use cases such as aligning lists. -
    • Allow keyword and <string> to be specified jointly for - 'text-align' to handle degenerate cases. -
    • Added ''trim'' keyword to 'text-justify' as a replacement to - 'text-justify-trim'. -
    • Removed ''tibetan'' keyword to 'text-justify'. -
    • Revised 'text-justify' section. -
    • Added ''allow-end'' value to 'punctuation-trim'. -
    • Re-added 'text-autospace' property, and added new ''punctuation'' keyword. -
    • Added ''each-line'' keyword to 'text-indent'. -
    • Linked 'text-shadow' definition to 'box-shadow' definition. -
    • Renamed values for 'hanging-punctuation' to be clearer; added - ''allow-end''/''force-end'' distinction. -
    • Wrote out 'text-decoration' section. -
    • Expanded 'text-emphasis' controls. -
    • Drafted syntax for 'text-overflow'. -
    • Added back 'text-transform' with new values for ''fullwidth'' - and ''large-kana''. +
    • Added ''auto'' value to 'text-align-last'. +
    • Added 'text-align-first'.