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
157157positioned 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>
195195The color(s) required for the text decoration must be derived from
196196the <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
198198descendant elements have different <span class="propinst-color">'color'</span> values.
199199</p>
200200<p>
201201Some user agents have implemented text-decoration by
202202propagating 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
204204above. This was arguably allowed by the looser wording in CSS2. SVG1,
205205CSS1-only, and CSS2-only user agents may implement the older model
206206and still claim conformance to this part of CSS 2.1. (This does not
0 commit comments