|
22 | 22 | margin :auto; |
23 | 23 | } |
24 | 24 | </style> |
25 | | - <link href="http://www.w3.org/StyleSheets/TR/W3C-WD.css" rel=stylesheet |
| 25 | + <link href="http://www.w3.org/StyleSheets/TR/W3C-ED.css" rel=stylesheet |
26 | 26 | type="text/css"> |
27 | 27 |
|
28 | 28 | <body> |
|
32 | 32 |
|
33 | 33 | <h1>CSS Text Level 3</h1> |
34 | 34 |
|
35 | | - <h2 class="no-num no-toc" id=longstatus-date>W3C Working Draft 18 January |
| 35 | + <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 19 January |
36 | 36 | 2012</h2> |
37 | 37 |
|
38 | 38 | <dl> |
39 | | - <dt>This version:</dt> |
40 | | - <!-- |
41 | | - <dd><a href="http://dev.w3.org/csswg/css3-text/">$Date$ (CVS $Revision$)</a> |
42 | | - --> |
| 39 | + <dt>This version: |
43 | 40 |
|
44 | | - <dd><a |
45 | | - href="http://www.w3.org/TR/2012/WD-css3-text-20120118/">http://www.w3.org/TR/2012/WD-css3-text-20120118/</a> |
| 41 | + <dd><a href="http://dev.w3.org/csswg/css3-text/">$Date: 2012/01/18 |
| 42 | + 23:33:32 $ (CVS $Revision$)</a> <!-- |
| 43 | + <dd><a href="http://www.w3.org/TR/2012/WD-css3-text-20120119/">http://www.w3.org/TR/2012/WD-css3-text-20120119/</a></dd> |
| 44 | + --> |
| 45 | + |
46 | 46 |
|
47 | 47 | <dt>Latest version: |
48 | 48 |
|
@@ -2275,6 +2275,31 @@ <h3 id=text-justify><span class=secno>7.3. </span> Justification Method: |
2275 | 2275 | be followed when any justification method other than ‘<code |
2276 | 2276 | class=property>auto</code>’ is specified. |
2277 | 2277 |
|
| 2278 | + <div class=note> |
| 2279 | + <p>The guidelines in this level of CSS do not describe a complete |
| 2280 | + justification algorithm. They are merely a minimum set of requirements |
| 2281 | + that a complete algorithm should meet. Limiting the set of requirements |
| 2282 | + gives UAs some latitude in choosing a justification algorithm that meets |
| 2283 | + their needs. |
| 2284 | + |
| 2285 | + <p>For instance, a basic but fast ‘<code |
| 2286 | + class=css>inter-word</code>’ justification algorithm might use a |
| 2287 | + simple greedy method for determining line breaks, then distribute space |
| 2288 | + using the <a href="#spacing">spacing limits provided</a>. This algorithm |
| 2289 | + could follow the guidelines by changing word spacing first, increasing |
| 2290 | + ‘<a href="#letter-spacing0"><code |
| 2291 | + class=property>letter-spacing</code></a>’ only if ‘<a |
| 2292 | + href="#word-spacing0"><code class=property>word-spacing</code></a>’ |
| 2293 | + hit a limit. |
| 2294 | + |
| 2295 | + <p>A more sophisticated but slower ‘<code |
| 2296 | + class=css>inter-word</code>’ justification algorithm might use a |
| 2297 | + Knuth/Plass method where spacing opportunities and spacing limits were |
| 2298 | + assigned weights and assessed with other line breaking considerations. |
| 2299 | + This algorithm could follow the guidelines by giving more weight to word |
| 2300 | + spacing than letter spacing. |
| 2301 | + </div> |
| 2302 | + |
2278 | 2303 | <p id=expansion-opportunity>CSS defines <dfn |
2279 | 2304 | id=expansion-opportunities>expansion opportunities</dfn> as points where |
2280 | 2305 | the justification algorithm may alter spacing within the text. These |
@@ -2501,9 +2526,6 @@ <h3 id=text-justify><span class=secno>7.3. </span> Justification Method: |
2501 | 2526 | such as alternate glyphs or glyph compression to help justify the text |
2502 | 2527 | under any method. This behavior is not controlled by this level of CSS. |
2503 | 2528 |
|
2504 | | - <p class=issue>Add example of using ‘<a href="#text-justify0"><code |
2505 | | - class=property>text-justify</code></a>’ with the TeX algorithm. |
2506 | | - |
2507 | 2529 | <div class=example> |
2508 | 2530 | <p>3.8 Line Adjustment in <a href="#JLREQ" |
2509 | 2531 | rel=biblioentry>[JLREQ]<!--{{JLREQ}}--></a> gives an example of a set of |
@@ -2708,7 +2730,8 @@ <h3 id=word-spacing><span class=secno>8.1. </span> Word Spacing: the |
2708 | 2730 | <!-- -->:lang(en) { word-spacing: 100%; }</pre> |
2709 | 2731 |
|
2710 | 2732 | <p>The following example will <em>add</em> half the the width of the |
2711 | | - “0” glyph to word spacing character [[CSS3VALUES]]: |
| 2733 | + “0” glyph to word spacing character <a href="#CSS3VAL" |
| 2734 | + rel=biblioentry>[CSS3VAL]<!--{{CSS3VAL}}--></a>: |
2712 | 2735 |
|
2713 | 2736 | <pre>p { word-spacing: 0.5ch; }</pre> |
2714 | 2737 | </div> |
@@ -4337,9 +4360,9 @@ <h3 id=text-shadow><span class=secno>10.3. </span> Text Shadows: the |
4337 | 4360 | <p>This property accepts a comma-separated list of shadow effects to be |
4338 | 4361 | applied to the text of the element. Values are interpreted as for <a |
4339 | 4362 | href="http://www.w3.org/TR/css3-background/#the-box-shadow">‘<code |
4340 | | - class=property>box-shadow</code>’</a>. [[!CSS3BACKGROUND]] The |
4341 | | - shadow is applied to all of the element's text as well as any text |
4342 | | - decorations it specifies. |
| 4363 | + class=property>box-shadow</code>’</a>. <a href="#CSS3BG" |
| 4364 | + rel=biblioentry>[CSS3BG]<!--{{!CSS3BG}}--></a> The shadow is applied to |
| 4365 | + all of the element's text as well as any text decorations it specifies. |
4343 | 4366 |
|
4344 | 4367 | <p>The shadow effects are applied front-to-back: the first shadow is on |
4345 | 4368 | top. The shadows may thus overlay each other, but they never overlay the |
@@ -4685,6 +4708,16 @@ <h3 class=no-num id=informative-ref>Informative references</h3> |
4685 | 4708 | </dd> |
4686 | 4709 | <!----> |
4687 | 4710 |
|
| 4711 | + <dt id=CSS3VAL>[CSS3VAL] |
| 4712 | + |
| 4713 | + <dd>Håkon Wium Lie; Tab Atkins; Elika J. Etemad. <a |
| 4714 | + href="http://www.w3.org/TR/2011/WD-css3-values-20110906/"><cite>CSS |
| 4715 | + Values and Units Module Level 3.</cite></a> 6 September 2011. W3C Working |
| 4716 | + Draft. (Work in progress.) URL: <a |
| 4717 | + href="http://www.w3.org/TR/2011/WD-css3-values-20110906/">http://www.w3.org/TR/2011/WD-css3-values-20110906/</a> |
| 4718 | + </dd> |
| 4719 | + <!----> |
| 4720 | + |
4688 | 4721 | <dt id=JIS4051>[JIS4051] |
4689 | 4722 |
|
4690 | 4723 | <dd><cite>Formatting rules for Japanese documents |
|
0 commit comments