Skip to content

Commit 4239897

Browse files
committed
[css-text-decor-3] Update text decoration positioning per WG resolutions.
--HG-- extra : rebase_source : 6abcb9062f70edaf430d8a184c5f3ac92c401397
1 parent d89a754 commit 4239897

2 files changed

Lines changed: 80 additions & 80 deletions

File tree

css-text-decor-3/Overview.html

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
<meta content="CSS Text Decoration Module Level 3 (CSS3 Text Decoration)"
1313
name=dcterms.title>
1414
<meta content=text name=dcterms.type>
15-
<meta content=2012-10-16 name=dcterms.issued>
15+
<meta content=2012-10-18 name=dcterms.issued>
1616
<meta content="Elika J. Etemad" name=dcterms.creator>
1717
<meta content="Koji Ishii" name=dcterms.creator>
1818
<meta content=W3C name=dcterms.publisher>
19-
<meta content="http://www.w3.org/TR/2012/WD-css3-text-20121016/"
19+
<meta content="http://www.w3.org/TR/2012/ED-css-text-decor-3-20121018/"
2020
name=dcterms.identifier>
2121
<link href="#contents" rel=contents>
2222
<link href="#index" rel=index>
2323
<link href="../default.css" rel=stylesheet type="text/css">
24-
<link href="http://www.w3.org/StyleSheets/TR/W3C-WD.css" rel=stylesheet
24+
<link href="http://www.w3.org/StyleSheets/TR/W3C-ED.css" rel=stylesheet
2525
type="text/css">
2626

2727
<body>
@@ -31,27 +31,27 @@
3131

3232
<h1>CSS Text Decoration Module Level 3</h1>
3333

34-
<h2 class="no-num no-toc" id=longstatus-date>W3C Working Draft 16 October
34+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 18 October
3535
2012</h2>
3636

3737
<dl>
38-
<dt>This version:</dt>
39-
<!--
40-
<dd><a href="http://dev.w3.org/csswg/css3-text/">$Date$ (CVS $Revision$)</a>
41-
-->
38+
<dt>This version:
4239

4340
<dd><a
44-
href="http://www.w3.org/TR/2012/WD-css3-text-20121016/">http://www.w3.org/TR/2012/WD-css3-text-20121016/</a>
41+
href="http://dev.w3.org/csswg/css-text-decor-3/">http://dev.w3.org/csswg/css-text-decor-3/</a>
42+
<!--
43+
<dd><a href="http://www.w3.org/TR/2012/WD-css3-text-20121018/">http://www.w3.org/TR/2012/WD-css3-text-20121018/</a></dd>
44+
-->
4545

4646
<dt>Latest version:
4747

4848
<dd><a
49-
href="http://www.w3.org/TR/css3-text/">http://www.w3.org/TR/css3-text/</a>
49+
href="http://www.w3.org/TR/css-text-decor-3/">http://www.w3.org/TR/css-text-decor-3/</a>
5050

5151
<dt>Latest editor's draft:
5252

5353
<dd><a
54-
href="http://dev.w3.org/csswg/css3-text/">http://dev.w3.org/csswg/css3-text/</a>
54+
href="http://dev.w3.org/csswg/css-text-decor-3/">http://dev.w3.org/csswg/css-text-decor-3/</a>
5555

5656
<dt>Previous version:
5757

@@ -67,7 +67,7 @@ <h2 class="no-num no-toc" id=longstatus-date>W3C Working Draft 16 October
6767

6868
<dd><a
6969
href="http://lists.w3.org/Archives/Public/www-style/">www-style@w3.org</a>
70-
with subject line “<kbd>[css3-text] <var>… message topic
70+
with subject line “<kbd>css-text-decor-3 <var>… message topic
7171
</var></kbd>
7272

7373
<dt>Editors:
@@ -146,12 +146,9 @@ <h2 class="no-num no-toc" id=status>Status of this document</h2>
146146
mailing list <a
147147
href="mailto:www-style@w3.org">www-style@w3.org</a></strong> (see <a
148148
href="http://www.w3.org/Mail/Request">instructions</a>) <strong>with
149-
<kbd>[css3-text-decor]</kbd> in the subject line.</strong> You are
150-
strongly encouraged to complain if you see something stupid in this draft.
151-
The editors will do their best to respond to all feedback.
152-
153-
<p>The following features are at risk and may be cut from the spec during
154-
its CR period if there are no (correct) implementations:
149+
<kbd>[text-decor]</kbd> in the subject line.</strong> You are strongly
150+
encouraged to complain if you see something stupid in this draft. The
151+
editors will do their best to respond to all feedback.
155152

156153
<p>The following features are at risk and may be cut from the spec during
157154
its CR period if there are no (correct) implementations:
@@ -488,40 +485,43 @@ <h3 id=text-decoration-line-property><span class=secno>2.1. </span> Text
488485
rel=biblioentry>[CSS3-ANIMATIONS]<!--{{CSS3-ANIMATIONS}}--></a>.
489486
</dl>
490487

491-
<div class=issue>
492-
<p> In determining the position and thickness of text decoration lines,
493-
user agents should first determine an "ideal" size and position for every
494-
decorated fragment on the line, then position the decoration as follows:
488+
<p> In determining the position and thickness of text decoration lines,
489+
user agents should first determine, per line, an "ideal" size and position
490+
for every fragment of a single <a href="#decorating-box"><i>decorating
491+
box</i></a>, then position the decoration as follows:
495492

496-
<dl>
497-
<dt>overlines (and <i>over</i>-positioned underlines)
493+
<dl>
494+
<dt>overlines (and <i>over</i>-positioned underlines)
498495

499-
<dd> Position the line with respect to the highest <i>over</i> content
500-
edge of the decorated boxes.
496+
<dd> Position the line with respect to the highest <i>over</i> content
497+
edge of the decorated fragments.
501498

502-
<dt><a href="#alphabetic"><i>alphabetic</i></a> underlines
499+
<dt><a href="#alphabetic"><i>alphabetic</i></a> underlines
503500

504-
<dd> Position the line to an average of the ideal underlines of the
505-
decorated boxes, ignoring any boxes with non-initial ‘<code
506-
class=property>vertical-align</code>’, but below the lowest alphabetic
507-
baseline considered.
501+
<dd> Position the line to an average of the ideal underlines of the
502+
decorated fragments, ignoring any fragments with non-initial ‘<code
503+
class=property>vertical-align</code>’, but below the lowest alphabetic
504+
baseline considered.
508505

509-
<dt>non-alphabetic underlines (and <i>under</i>-positioned overlines)
506+
<dt>non-alphabetic underlines (and <i>under</i>-positioned overlines)
510507

511-
<dd> Position the line with respect to the lowest <i>under</i> content
512-
edge of the decorated boxes.
508+
<dd> Position the line with respect to the lowest <i>under</i> content
509+
edge of the decorated fragments.
513510

514-
<dt>line-throughs
511+
<dt>line-throughs
515512

516-
<dd> Position the line to an average of the ideal line-throughs of the
517-
decorated boxes, ignoring any boxes with non-initial ‘<code
518-
class=property>vertical-align</code>’. However, if this would place a
519-
line-through outside the middle third of a decorated box's content box,
520-
break the line-through, treating the line-through of that box and its
521-
descendants as an independent decoration for the purpose of determining
522-
the line's position and thickness.
523-
</dl>
524-
</div>
513+
<dd> For each set of decorated fragments with the same ‘<code
514+
class=property>font-size</code>’, compute an ideal position averaged
515+
from their direct contents and font metrics, ignoring any fragments with
516+
non-initial ‘<code class=property>vertical-align</code>’ and
517+
assigning them the ideal position of their parent. Position the portion
518+
of the line across each decorated fragment at the fragment's ideal
519+
position. (Essentially, this performs the same sort of averaging as for
520+
alphabetic underlines, but recomputes the position when drawing across a
521+
descendant with a different computed ‘<code
522+
class=property>font-size</code>’.) <span class=issue>Need an example
523+
here</span>
524+
</dl>
525525

526526
<div class=example>
527527
<p>The following figure shows the averaging for underline:

css-text-decor-3/Overview.src.html

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,18 @@ <h1>CSS Text Decoration Module Level 3</h1>
1919
<h2 class="no-num no-toc">[LONGSTATUS] [DATE]</h2>
2020
<dl>
2121
<dt>This version:</dt>
22+
23+
<dd><a href="http://dev.w3.org/csswg/css-text-decor-3/">http://dev.w3.org/csswg/css-text-decor-3/</a>
2224
<!--
23-
<dd><a href="http://dev.w3.org/csswg/css3-text/">$Date$ (CVS $Revision$)</a>
24-
-->
2525
<dd><a href="http://www.w3.org/TR/[YEAR]/WD-css3-text-[CDATE]/">http://www.w3.org/TR/[YEAR]/WD-css3-text-[CDATE]/</a></dd>
26+
-->
2627

2728
<dt>Latest version:</dt>
28-
<dd><a href="http://www.w3.org/TR/css3-text/">http://www.w3.org/TR/css3-text/</a></dd>
29+
<dd><a href="http://www.w3.org/TR/[SHORTNAME]/">http://www.w3.org/TR/[SHORTNAME]/</a></dd>
30+
2931
<dt>Latest editor's draft:</dt>
30-
<dd><a href="http://dev.w3.org/csswg/css3-text/">http://dev.w3.org/csswg/css3-text/</a></dd>
32+
<dd><a href="http://dev.w3.org/csswg/[SHORTNAME]/">http://dev.w3.org/csswg/[SHORTNAME]/</a></dd>
33+
3134
<dt>Previous version:</dt>
3235
<dd><a
3336
href="http://www.w3.org/TR/2012/WD-css3-text-20120119/">http://www.w3.org/TR/2012/WD-css3-text-20120119/</a>
@@ -36,7 +39,7 @@ <h2 class="no-num no-toc">[LONGSTATUS] [DATE]</h2>
3639
<dd><a href="http://www.w3.org/Style/CSS/Tracker/products/10">http://www.w3.org/Style/CSS/Tracker/products/10</a>
3740

3841
<dt>Discussion:</dt>
39-
<dd><a href="http://lists.w3.org/Archives/Public/www-style/">www-style@w3.org</a> with subject line &ldquo;<kbd>[[SHORTNAME]] <var>&hellip; message topic &hellip;</var></kbd>&rdquo;
42+
<dd><a href="http://lists.w3.org/Archives/Public/www-style/">www-style@w3.org</a> with subject line &ldquo;<kbd>[SHORTNAME] <var>&hellip; message topic &hellip;</var></kbd>&rdquo;
4043

4144
<dt>Editors:</dt>
4245
<dd><a href="http://fantasai.inkedblade.net/contact">Elika J. Etemad</a> (Mozilla)</dd>
@@ -96,12 +99,9 @@ <h2 class="no-num no-toc" id="status">Status of this document</h2>
9699
(<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>)
97100
public mailing list <a href="mailto:www-style@w3.org">www-style@w3.org</a></strong>
98101
(see <a href="http://www.w3.org/Mail/Request">instructions</a>) <strong>with
99-
<kbd>[css3-text-decor]</kbd> in the subject line.</strong>
102+
<kbd>[text-decor]</kbd> in the subject line.</strong>
100103
You are strongly encouraged to complain if you see something stupid
101104
in this draft. The editors will do their best to respond to all feedback.</p>
102-
103-
<p>The following features are at risk and may be cut from the spec during
104-
its CR period if there are no (correct) implementations:</p>
105105

106106
<p>The following features are at risk and may be cut from the spec during
107107
its CR period if there are no (correct) implementations:</p>
@@ -289,37 +289,37 @@ <h3 id="text-decoration-line-property">
289289
This value is <strong>deprecated</strong> in favor of Animations [[CSS3-ANIMATIONS]].
290290
</dl>
291291

292-
<div class='issue'>
293-
<p>
294-
In determining the position and thickness of text decoration lines,
295-
user agents should first determine an "ideal" size and position for every decorated fragment on the line,
296-
then position the decoration as follows:
292+
<p>
293+
In determining the position and thickness of text decoration lines,
294+
user agents should first determine, per line,
295+
an "ideal" size and position for every fragment of a single <i>decorating box</i>,
296+
then position the decoration as follows:
297297

298-
<dl>
299-
<dt>overlines (and <i>over</i>-positioned underlines)
300-
<dd>
301-
Position the line with respect to the highest <i>over</i> content edge of the decorated boxes.
298+
<dl>
299+
<dt>overlines (and <i>over</i>-positioned underlines)
300+
<dd>
301+
Position the line with respect to the highest <i>over</i> content edge of the decorated fragments.
302302

303-
<dt><i>alphabetic</i> underlines
304-
<dd>
305-
Position the line to an average of the ideal underlines of the decorated boxes,
306-
ignoring any boxes with non-initial 'vertical-align',
307-
but below the lowest alphabetic baseline considered.
303+
<dt><i>alphabetic</i> underlines
304+
<dd>
305+
Position the line to an average of the ideal underlines of the decorated fragments,
306+
ignoring any fragments with non-initial 'vertical-align',
307+
but below the lowest alphabetic baseline considered.
308308

309-
<dt>non-alphabetic underlines (and <i>under</i>-positioned overlines)
310-
<dd>
311-
Position the line with respect to the lowest <i>under</i> content edge of the decorated boxes.
309+
<dt>non-alphabetic underlines (and <i>under</i>-positioned overlines)
310+
<dd>
311+
Position the line with respect to the lowest <i>under</i> content edge of the decorated fragments.
312312

313-
<dt>line-throughs
314-
<dd>
315-
Position the line to an average of the ideal line-throughs of the decorated boxes,
316-
ignoring any boxes with non-initial 'vertical-align'.
317-
However, if this would place a line-through outside the middle third of a decorated box's content box,
318-
break the line-through,
319-
treating the line-through of that box and its descendants as an independent decoration
320-
for the purpose of determining the line's position and thickness.
321-
</dl>
322-
</div>
313+
<dt>line-throughs
314+
<dd>
315+
For each set of decorated fragments with the same 'font-size',
316+
compute an ideal position averaged from their direct contents and font metrics,
317+
ignoring any fragments with non-initial 'vertical-align' and assigning them the ideal position of their parent.
318+
Position the portion of the line across each decorated fragment at the fragment's ideal position.
319+
(Essentially, this performs the same sort of averaging as for alphabetic underlines,
320+
but recomputes the position when drawing across a descendant with a different computed 'font-size'.)
321+
<span class="issue">Need an example here</span>
322+
</dl>
323323

324324
<div class="example">
325325
<p>The following figure shows the averaging for underline:

0 commit comments

Comments
 (0)