Skip to content

Commit 7f0ef87

Browse files
committed
[css2] Issue 144
from http://wiki.csswg.org/spec/css2.1 --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%403041
1 parent a27ae73 commit 7f0ef87

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

css2/text.src

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: text.src,v 2.74 2010-08-25 23:13:03 bbos Exp $ -->
3+
<!-- $Id: text.src,v 2.75 2010-10-05 19:25:20 bbos Exp $ -->
44
<head>
55
<title>Text</title>
66
<meta http-equiv="Content-Style-Type" content="text/css">
@@ -168,6 +168,23 @@ Underlines, overlines, and line-throughs are applied only to text
168168
borders, and padding are skipped.
169169
User agents must not render these text decorations on content that is
170170
not text. For example, images and inline blocks must not be underlined.
171+
172+
<div class=note>
173+
<p><em><strong>Note.</strong> If an element E has both 'visibility:
174+
hidden' and 'text-decoration: underline', the underline is invisible
175+
(although any decoration of E's parent <strong>is</strong> visible.)
176+
However, CSS&nbsp;2.1 does not specify if the underline is visible or
177+
invisible in E's children:</em>
178+
<pre class=html-example>
179+
&lt;span style="visibility: hidden; text-decoration: underline"&gt;
180+
&lt;span style="visibility: visible"&gt;
181+
underlined or not?
182+
&lt;/span&gt;
183+
&lt;/span&gt;
184+
</pre>
185+
<p><em>This is expected to be specified in level&nbsp;3 of CSS.</em>
186+
</div>
187+
171188
<p>
172189
The 'text-decoration' property on descendant elements cannot have any
173190
effect on the decoration of the ancestor. In determining the position

0 commit comments

Comments
 (0)