@@ -219,6 +219,11 @@ Text Decoration Lines: the 'text-decoration-line' property</h3>
219219 <span class=note> It is often rendered as a green wavy underline.</span>
220220 </dl>
221221
222+ Note: In <a>vertical writing modes</a> ,
223+ 'text-decoration-position' can cause the underline and overline to switch sides.
224+ This allows the position of underlines to key off of language-specific preferences
225+ automatically.
226+
222227 When the value of 'text-decoration-line' is either ''spelling-error'' or ''grammar-error'' ,
223228 the UA may disregard the values of the other <a>sub-properties</a> of 'text-decoration' ,
224229 as well as those of other properties affecting the appearance of the text-decoration such as 'text-underline-position' .
@@ -295,6 +300,11 @@ Text Decoration Shorthand: the 'text-decoration' property</h3>
295300<!-- -->}</code></pre>
296301 </div>
297302
303+ Note: The shorthand purposefully omits the 'text-decoration-position' property,
304+ which is a language/writing-system–dependent setting that keys off the content,
305+ so that it can cascade and inherit independently
306+ from the (uninherited) stylistic settings of the 'text-decoration' shorthand.
307+
298308<h3 id="text-underline-position-property">
299309Text Underline Position: the 'text-underline-position' property</h3>
300310
@@ -314,8 +324,10 @@ Text Underline Position: the 'text-underline-position' property</h3>
314324 <p> The following example styles modern Chinese, Japanese, and Korean
315325 texts with the appropriate underline positions in both horizontal
316326 and vertical text:
317- <pre> :root:lang(ja), [lang|=ja] , :root:lang(ko), [lang|=ko] { text-underline-position: under right; }
318- <!-- -->:root:lang(zh), [lang|=zh] { text-underline-position: under left; }</pre>
327+ <pre>
328+ :root:lang(ja), [lang|=ja] , :root:lang(ko), [lang|=ko] { text-underline-position: under right; }
329+ :root:lang(zh), [lang|=zh] { text-underline-position: under left; }
330+ </pre>
319331 <p> (Note that these rules are part of the suggested
320332 <a href="#default-stylesheet">default UA style sheet</a> .)
321333 </div>
0 commit comments