@@ -219,6 +219,11 @@ Text Decoration Lines: the 'text-decoration-line' property</h3>
219
219
<span class=note> It is often rendered as a green wavy underline.</span>
220
220
</dl>
221
221
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
+
222
227
When the value of 'text-decoration-line' is either ''spelling-error'' or ''grammar-error'' ,
223
228
the UA may disregard the values of the other <a>sub-properties</a> of 'text-decoration' ,
224
229
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>
295
300
<!-- -->}</code></pre>
296
301
</div>
297
302
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
+
298
308
<h3 id="text-underline-position-property">
299
309
Text Underline Position: the 'text-underline-position' property</h3>
300
310
@@ -314,8 +324,10 @@ Text Underline Position: the 'text-underline-position' property</h3>
314
324
<p> The following example styles modern Chinese, Japanese, and Korean
315
325
texts with the appropriate underline positions in both horizontal
316
326
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>
319
331
<p> (Note that these rules are part of the suggested
320
332
<a href="#default-stylesheet">default UA style sheet</a> .)
321
333
</div>
0 commit comments