Changes between Version 1 and Version 2 of LineBreaking


Ignore:
Timestamp:
Aug 31, 2012 2:23:24 AM (12 years ago)
Author:
glenn@skynav.com
Comment:

Add content.

Legend:

Unmodified
Added
Removed
Modified
  • LineBreaking

    v1 v2  
    88== Line Breaking ==
    99
     10[http://dev.w3.org/csswg/css3-text/ CSS3 Text] defines a set of rules governing [http://dev.w3.org/csswg/css3-text/#line-break-details default line breaking behavior], some of which is very specific, i.e., testable and repeatable among browsers, and some of which is generic, i.e., not standardized. An example of the former is that the non-tailorable line breaking classes defined by the Unicode Line Breaking Algorithm, Unicode Technical Report #14 [http://www.unicode.org/reports/tr14/ UAX14], must be honored; an example of the latter is that [http://dev.w3.org/csswg/css3-text/#soft-wrap-opportunity soft break opportunities] are not concretely defined.
     11
    1012=== The `line-break` property ===
     13
     14In order to customize line breaking behavior, CSS3 Text intorduces the inheritable [http://dev.w3.org/csswg/css3-text/#line-break line-break] property, with the following standard values:
     15
     16 * `auto`
     17 * `loose`
     18 * `normal`
     19 * `strict`
     20
     21If not specified, the initial (default) value is `auto`.
    1122
    1223=== The former `-webkit-line-break` property ===
    1324
     25For some time now, WebKit has supported a non-standard `-webkit-line-break` property, based on the earlier `-khtml-line-break` property, which accepted one of two values:
     26
     27 * `normal` (default)
     28 * `after-white-space`
     29
    1430=== The new `-webkit-line-break` property ===
     31
     32With the introduction of CSS3 Text features, and since its properties have not yet been designated non-prefixed by the CSS Working Group, it is necessary to merge the value space of the former `-webkit-line-break` property and the new `line-break` property into a newly defined `-webkit-line-break` property that accepts the following values:
     33
     34 * `auto` (default)
     35 * `loose`
     36 * `normal`
     37 * `strict`
     38 * `after-white-space`
     39
     40Note that this functional merger results in the value `auto` being returned as the default value instead of the former `normal` value.
    1541
    1642=== Implementation Details ===
     
    1844== References ==
    1945
    20  1. http://dev.w3.org/csswg/css3-text/
    21  1. http://dev.w3.org/csswg/css3-text/#line-break-details
    22  1. http://www.unicode.org/reports/tr14/
    23  1. http://dev.w3.org/csswg/css3-text/#line-break
    24  1. http://site.icu-project.org
    25  1. http://www.w3.org/TR/html5/global-attributes.html#the-lang-and-xml:lang-attributes
    26 
    27 
     46 1. [=#css3text http://dev.w3.org/csswg/css3-text/]
     47 1. [=#uax14 http://www.unicode.org/reports/tr14/]
     48 1. [=#icu http://site.icu-project.org]
     49 1. [=#html5lang http://www.w3.org/TR/html5/global-attributes.html]