Skip to content

Commit 484b0e1

Browse files
committed
[css2] issue 156 (text-decoration changes)
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402564
1 parent fbbf1b5 commit 484b0e1

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

css2/text.src

Lines changed: 16 additions & 16 deletions
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.55 2006-06-02 16:18:03 bbos Exp $ -->
3+
<!-- $Id: text.src,v 2.56 2006-10-10 19:15:22 ihickson Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<title>Text</title>
@@ -157,20 +157,20 @@ It is not, however, further propagated to floating and absolutely
157157
positioned descendants, nor to the contents of 'inline-table' and
158158
'inline-block' descendants.
159159
</p><p>
160-
If an element contains no text (ignoring white space in elements
161-
that have 'white-space' set to 'normal', 'pre-line', or 'nowrap'),
162-
user agents must refrain from rendering text decorations on the
163-
element. For example, elements containing only images and collapsed
164-
white space will not be underlined.
160+
Underlines, overlines, and line-throughs are applied only to text
161+
(including white space, letter spacing, and word spacing): margins,
162+
borders, and padding are skipped. If an element contains no text,
163+
user agents must refrain from rendering these text decorations on the
164+
element. For example, images will not be underlined.
165165
</p><p>
166-
Text decorations on inline boxes are drawn across the entire
167-
element, going across any descendant elements without paying any
168-
attention to their presence. The 'text-decoration' property on
169-
descendant elements cannot have any effect on the decoration of the
170-
element. In determining the position of and thickness of text
171-
decoration lines, user agents may consider the font sizes of and
172-
dominant baselines of descendants, but must use the same baseline
173-
and thickness on each line.
166+
The 'text-decoration' property on descendant elements cannot have any
167+
effect on the decoration of the ancestor. In determining the position
168+
of and thickness of text decoration lines, user agents may consider the
169+
font sizes of and dominant baselines of descendants, but must use the
170+
same baseline and thickness on each line. Relatively positioning a
171+
descendant moves all text decorations affecting it along with the
172+
descendant's text; it does not affect calculation of the decoration's
173+
initial position on that line.
174174
</p>
175175

176176
<p>Values have the following meanings:</p>
@@ -194,13 +194,13 @@ is one technique to satisfy
194194
<p>
195195
The color(s) required for the text decoration must be derived from
196196
the <span class="propinst-color">'color'</span> property value of the element on which 'text-decoration'
197-
is set. The color of decorations should remain the same even if
197+
is set. The color of decorations must remain the same even if
198198
descendant elements have different <span class="propinst-color">'color'</span> values.
199199
</p>
200200
<p>
201201
Some user agents have implemented text-decoration by
202202
propagating the decoration to the descendant elements as opposed to
203-
simply drawing the decoration through the elements as described
203+
preserving a constant thickness and line position as described
204204
above. This was arguably allowed by the looser wording in CSS2. SVG1,
205205
CSS1-only, and CSS2-only user agents may implement the older model
206206
and still claim conformance to this part of CSS&nbsp;2.1. (This does not

0 commit comments

Comments
 (0)