Skip to content

Commit a9a8bdd

Browse files
committed
[css-text-decor] Clarify interaction of text-decoration with display: contents.
1 parent c05f619 commit a9a8bdd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

css-text-decor/Overview.bs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,19 @@ Line Decoration: Underline, Overline, and Strike-Through</h2>
170170
blocks.</p>
171171
</div>
172172

173+
Note: Line decorations are propagated through the box tree,
174+
not through inheritance,
175+
and thus have no effect on descendants
176+
when specified on an element with ''display: contents''.
177+
173178
<h3 id="text-decoration-line-property">
174179
Text Decoration Lines: the 'text-decoration-line' property</h3>
175180

176181
<pre class="propdef">
177182
Name: text-decoration-line
178183
Value: none | [ underline || overline || line-through || blink ]
179184
Initial: none
180-
Inherited: no (but see prose)
185+
Inherited: no (but see prose, above)
181186
</pre>
182187

183188
<p>Specifies what line decorations, if any, are added to the element.

0 commit comments

Comments
 (0)