@@ -179,8 +179,19 @@ Text Decoration Lines: the 'text-decoration-line' property</h3>
179179 Animation type : discrete
180180 </pre>
181181
182- Specifies what line decorations, if any, are added to the element.
183- Values have the following meanings:</p>
182+ This property,
183+ which is a <a>sub-property</a> of the 'text-decoration' shorthand,
184+ specifies what line decorations, if any, are added by the element.
185+ Values other than ''text-decoration-line''
186+ cause the element to originate the indicated text decorations,
187+ and to apply and propagate it as described [[#line-decoration|above]] .
188+
189+ Note: Unless it is desired for the color, style, and thickness of the lines
190+ to be set by declarations lower in the [=cascade=] ,
191+ it is safer to use the 'text-decoration' [=shorthand=]
192+ instead of this [=longhand=] .
193+
194+ Values have the following meanings:
184195
185196 <dl dfn-type=value dfn-for=text-decoration-line>
186197 <dt> <dfn>none</dfn>
@@ -256,15 +267,16 @@ Text Decoration Style: the 'text-decoration-style' property</h3>
256267 Animation type : discrete
257268 </pre>
258269
259- This property specifies the style of the line(s) drawn for
260- text decoration specified on the element. Values have the
261- same meaning as for the
262- <a href="https://www.w3.org/TR/css-backgrounds-3/#the-border-style">border-style
263- properties</a> [[!CSS-BACKGROUNDS-3]] . ''wavy'' indicates a wavy line.
264-
265- The style of text decorations must remain the same on all decorations originating from a given element,
266- even if descendant boxes have different specified styles.
270+ This property,
271+ which is a <a>sub-property</a> of the 'text-decoration' shorthand,
272+ sets the line-drawing style of underlines, overlines, and line-throughs
273+ specified on the element with 'text-decoration-line' ,
274+ and affects all decorations originating from this element
275+ even if descendant boxes specify a different style.
267276
277+ Values have the same meaning as for the
278+ <a href="https://www.w3.org/TR/css-backgrounds-3/#the-border-style">border-style properties</a> [[!CSS-BACKGROUNDS-3]] .
279+ <dfn type=value for=text-decoration-style>wavy</dfn> indicates a wavy line.
268280
269281<h3 id="text-decoration-color-property">
270282Text Decoration Color: the 'text-decoration-color' property</h3>
@@ -278,12 +290,12 @@ Text Decoration Color: the 'text-decoration-color' property</h3>
278290 Animation type : by computed value type
279291 </pre>
280292
281- This property specifies the color of text decoration (underlines
282- overlines, and line-throughs) set on the element with
283- 'text-decoration- line' .
284-
285- The color of text decorations must remain the same on all decorations originating from a given element,
286- even if descendant boxes have different specified colors .
293+ This property,
294+ which is a <a>sub-property</a> of the 'text-decoration' shorthand,
295+ sets the color of underlines, overlines, and line-throughs
296+ specified on the element with 'text-decoration-line' ,
297+ and affects all decorations originating from this element
298+ even if descendant boxes specify a different color .
287299
288300<h3 id="text-decoration-width-property">
289301Text Decoration Line Thickness: the 'text-decoration-thickness' property</h3>
@@ -299,8 +311,12 @@ Text Decoration Line Thickness: the 'text-decoration-thickness' property</h3>
299311 Animation type : by computed value
300312 </pre>
301313
302- This property, which is also a <a>sub-property</a> of the 'text-decoration' shorthand,
303- sets the stroke thickness of underlines, overlines, and line-throughs.
314+ This property,
315+ which is a <a>sub-property</a> of the 'text-decoration' shorthand,
316+ sets the stroke thickness of underlines, overlines, and line-throughs
317+ specified on the element with 'text-decoration-line' ,
318+ and affects all decorations originating from this element
319+ even if descendant boxes specify a different thickness.
304320
305321 Values have the following meanings:
306322
@@ -447,7 +463,10 @@ Text Decoration Shorthand: the 'text-decoration' property</h3>
447463 </pre>
448464
449465 This property is a shorthand for setting
450- 'text-decoration-line' , 'text-decoration-thickness' , 'text-decoration-style' , and 'text-decoration-color'
466+ 'text-decoration-line' ,
467+ 'text-decoration-thickness' ,
468+ 'text-decoration-style' ,
469+ and 'text-decoration-color'
451470 in one declaration.
452471 Omitted values are set to their initial values.
453472
@@ -486,8 +505,12 @@ Text Underline Position: the 'text-underline-position' property</h3>
486505 Animation type : discrete
487506 </pre>
488507
489- This property sets the position of an underline with respect to the element,
490- and sets its [=zero position=] for further adjustment by 'text-underline-offset' .
508+ This property,
509+ which is <em> not</em> a <a>sub-property</a> of the 'text-decoration' shorthand,
510+ sets the position of an underline with respect to the text,
511+ and defines its [=zero position=] for further adjustment by 'text-underline-offset' .
512+ It affects all decorations originating from this element,
513+ even if descendant boxes specify a different position.
491514 It does not affect underlines specified by ancestor elements.
492515
493516 <div class="example">
@@ -623,10 +646,14 @@ Text Underline Offset: the 'text-underline-offset' property</h3>
623646 Animation type : by computed value
624647 </pre>
625648
626- This property, which is <em> not</em> a <a>sub-property</a> of the 'text-decoration' shorthand,
649+ This property,
650+ which is <em> not</em> a <a>sub-property</a> of the 'text-decoration' shorthand,
627651 sets the offset of underlines from their [=zero position=] .
628652 Positive offsets represent distances outward from the text;
629653 negative offsets inward.
654+ It affects all decorations originating from this element,
655+ even if descendant boxes specify a different position.
656+ It does not affect underlines specified by ancestor elements.
630657
631658 Values have the following meanings:
632659
0 commit comments