@@ -950,10 +950,12 @@ Line Breaking Details</h3>
950950 <p> As another example, Korean has two styles of line-breaking:
951951 between any two Korean syllables (''word-break: normal'' )
952952 or, like English, mainly at spaces (''word-break: keep-all'' ).
953- <pre> 각 줄의 마지막에 한글이 올 때 줄 나눔 기 /* break between syllables */
954- <!-- -->준을 “글자” 또는 “어절” 단위로 한다.</pre>
955- <pre> 각 줄의 마지막에 한글이 올 때 줄 나눔 /* break only at spaces */
956- <!-- -->기준을 “글자” 또는 “어절” 단위로 한다.</pre>
953+ <pre>
954+ 각 줄의 마지막에 한글이 올 때 줄 나눔 <strong> 기
955+ 준을</strong> “글자” 또는 “어절” 단위로 한다.</pre>
956+ <pre>
957+ 각 줄의 마지막에 한글이 올 때 줄 나눔
958+ <strong> 기준을</strong> “글자” 또는 “어절” 단위로 한다.</pre>
957959 </div>
958960
959961 <p class="note">
@@ -1800,8 +1802,9 @@ Word Spacing: the 'word-spacing' property</h3>
18001802 <p> The following example will make all the spaces between words in Arabic
18011803 be rendered as zero-width, and double the width of each space in English:
18021804
1803- <pre> :lang(ar) { word-spacing: -100%; }
1804- <!-- -->:lang(en) { word-spacing: 100%; }</pre>
1805+ <pre>
1806+ :lang(ar) { word-spacing: -100%; }
1807+ :lang(en) { word-spacing: 100%; }</pre>
18051808
18061809 <p> The following example will <em> add</em> half the the width of the
18071810 “0” glyph to word spacing character [[CSS-VALUES-3]] :
@@ -1870,9 +1873,9 @@ Word Spacing: the 'word-spacing' property</h3>
18701873 <p> Because letter-spacing is not applied at the beginning or end of a line,
18711874 text always fits flush with the edge of the block.
18721875 <pre>
1873- <!-- --> p { letter-spacing: 1em; }
1876+ p { letter-spacing: 1em; }
18741877
1875- <!-- --> <p>abc</p></pre>
1878+ <p>abc</p></pre>
18761879
18771880 <p class="ls-ex good ls-fixed-width color-box" style="text-align: left"> a b c</p>
18781881 <p class="ls-ex good ls-fixed-width color-box" style="text-align: right"> a b c</p>
@@ -1893,10 +1896,10 @@ Word Spacing: the 'word-spacing' property</h3>
18931896 between characters completely contained within the element for which it is specified:
18941897
18951898 <pre>
1896- <!-- --> p { letter-spacing: 1em; }
1897- <!-- --> span { letter-spacing: 2em; }
1899+ p { letter-spacing: 1em; }
1900+ span { letter-spacing: 2em; }
18981901
1899- <!-- --> <p>a<span>bb</span>c</p></pre>
1902+ <p>a<span>bb</span>c</p></pre>
19001903
19011904 <p class="ls-ex"> a <span class="color-box"> b  b</span>  c</p>
19021905
@@ -1905,20 +1908,20 @@ Word Spacing: the 'word-spacing' property</h3>
19051908 has no effect on the rendered result:
19061909
19071910 <pre>
1908- <!-- --> p { letter-spacing: 1em; }
1909- <!-- --> span { letter-spacing: 2em; }
1911+ p { letter-spacing: 1em; }
1912+ span { letter-spacing: 2em; }
19101913
1911- <!-- --> <p>a<span>b</span>c</p></pre>
1914+ <p>a<span>b</span>c</p></pre>
19121915
19131916 <p class="ls-ex"> a <span class="color-box"> b</span>  c</p>
19141917
19151918 <p> An inline box only includes
19161919 letter spacing between characters completely contained within that element:
19171920
19181921 <pre>
1919- <!-- --> p { letter-spacing: 1em; }
1922+ p { letter-spacing: 1em; }
19201923
1921- <!-- --> <p>a<span>bb</span>c</p></pre>
1924+ <p>a<span>bb</span>c</p></pre>
19221925
19231926 <p class="ls-ex good"> a <span class="color-box"> b b</span>  c</p>
19241927
@@ -1930,12 +1933,12 @@ Word Spacing: the 'word-spacing' property</h3>
19301933 so the letter spacing applied to the inner span below has no effect,
19311934 since after reordering the "c" doesn't end up next to "א":
19321935 <pre>
1933- <!-- --> p { letter-spacing: 1em; }
1934- <!-- --> span { letter-spacing: 2em; }
1936+ p { letter-spacing: 1em; }
1937+ span { letter-spacing: 2em; }
19351938
1936- <!-- --> <!-- abc followed by Hebrew letters alef (א), bet (ב) and gimel (ג) -->
1937- <!-- --> <!-- Reordering will display these in reverse order. -->
1938- <!-- --> <bdo dir=ltr> <p>ab<span>cא</span>בג</p></bdo></pre>
1939+ <!-- abc followed by Hebrew letters alef (א), bet (ב) and gimel (ג) -->
1940+ <!-- Reordering will display these in reverse order. -->
1941+ <bdo dir=ltr> <p>ab<span>cא</span>בג</p></bdo></pre>
19391942
19401943 <p class="ls-ex"> a b</span>  <span class="color-box"> c</span>  <span class="color-box"> א</span>  ב ג</p>
19411944 </div>
@@ -2249,23 +2252,22 @@ Cursive Scripts</h4>
22492252 width="202" height="51"
22502253 alt="hanging-punctuation: allow-end">
22512254 </div>
2252- <pre><code class="css"> <!--
2253- -->p {
2254- <!-- --> text-align: justify;
2255- <!-- --> hanging-punctuation: allow-end;
2256- <!-- -->}
2257- <!----></code></pre>
2255+ <pre class="css">
2256+ p {
2257+ text-align: justify;
2258+ hanging-punctuation: allow-end;
2259+ }</pre>
22582260 <div class="sidefigure">
22592261 <img src="images/hanging-punctuation-force-end.png"
22602262 width="202" height="51"
22612263 alt="hanging-punctuation: force-end">
22622264 </div>
2263- <pre><code class="css"> <!--
2264- --> p {
2265- <!-- --> text-align: justify;
2266- <!-- --> hanging-punctuation: force-end;
2267- <!-- --> }
2268- <!----> </code> </pre>
2265+ <pre class="css">
2266+ p {
2267+ text-align: justify;
2268+ hanging-punctuation: force-end;
2269+ }
2270+ </pre>
22692271 </div>
22702272 <p> The punctuation at the end of the first line for ''allow-end''
22712273 does not hang, because it fits without hanging.
@@ -2296,14 +2298,15 @@ Bidirectionality and Line Boxes</h3>
22962298 <p> In the following example, assuming the <code> <block></code>
22972299 is a preformatted block (''display: block; white-space: pre'' ) inheriting
22982300 ''text-align: start'' , every other line is right-aligned:</p>
2299- <pre> <block style="unicode-bidi: plaintext">
2300- <!-- --> Latin
2301- <!-- --> و·کمی
2302- <!-- --> Latin
2303- <!-- --> و·کمی
2304- <!-- --> Latin
2305- <!-- --> و·کمی
2306- <!-- --></block></pre>
2301+ <pre>
2302+ <block style="unicode-bidi: plaintext">
2303+ Latin
2304+ و·کمی
2305+ Latin
2306+ و·کمی
2307+ Latin
2308+ و·کمی
2309+ </block></pre>
23072310 </div>
23082311
23092312 <p class="note"> Note that the inline base direction determined here
@@ -2315,9 +2318,9 @@ Bidirectionality and Line Boxes</h3>
23152318 <div class="example">
23162319 <p> In the following example:
23172320 <pre>
2318- <!-- --> <para style="display: block; direction: rtl; unicode-bidi:plaintext">
2319- <!-- --> <quote style="unicode-bidi:plaintext">שלום!</quote>", he said.
2320- <!-- --> </para></pre>
2321+ <para style="display: block; direction: rtl; unicode-bidi:plaintext">
2322+ <quote style="unicode-bidi:plaintext">שלום!</quote>", he said.
2323+ </para></pre>
23212324
23222325 <p> The result should be a left-aligned line looking like this:
23232326 <pre> "!שלום", he said.</pre>
@@ -2341,13 +2344,13 @@ Bidirectionality and Line Boxes</h3>
23412344
23422345 <div class="example">
23432346 <pre>
2344- <!-- --> <fieldset style="direction: rtl">
2345- <!-- --> <textarea style="unicode-bidi:plaintext">
2346- <!-- -->
2347- <!-- --> Hello!
2348- <!-- -->
2349- <!-- --> </textarea>
2350- <!-- --> </fieldset></pre>
2347+ <fieldset style="direction: rtl">
2348+ <textarea style="unicode-bidi:plaintext">
2349+
2350+ Hello!
2351+
2352+ </textarea>
2353+ </fieldset></pre>
23512354
23522355 <p> As expected, the "Hello!" should be displayed LTR
23532356 (i.e. with the exclamation mark on the right end,
@@ -2410,8 +2413,8 @@ Appendix C: Default UA Stylesheet</h2>
24102413
24112414 <div class="example">
24122415 <pre>
2413- <!-- --> /* make list items and option elements align together */
2414- <!-- --> li, option { text-align: match-parent; }</pre>
2416+ /* make list items and option elements align together */
2417+ li, option { text-align: match-parent; }</pre>
24152418 </div>
24162419 <p class="feedback issue"> If you find any issues, recommendations to add, or corrections,
24172420 please send the information to <a href="mailto:www-style@w3.org">www-style@w3.org</a>
0 commit comments