Skip to content

Commit 87e61b2

Browse files
committed
[css-text-decor-3] Add example for strikethrough averaging.
1 parent 425d081 commit 87e61b2

3 files changed

Lines changed: 29 additions & 13 deletions

File tree

css-text-decor-3/Overview.html

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,12 @@ <h2 class="no-num no-toc" id=status>Status of this document</h2>
156156
<li>the ‘<a href="#text-decoration-skip"><code
157157
class=property>text-decoration-skip</code></a>’ property / ‘<code
158158
class=css>ink</code>’ value
159+
160+
<li>the <a href="#line-position">line positioning rules</a>
159161
</ul>
160162

161-
<p>This is technically the first public working draft of this module,
162-
however it is merely an extract from the <a
163-
href="http://www.w3.org/TR/2012/WD-css3-text-20120814/">previous Working
164-
Draft of CSS Text Level 3</a>.
163+
<p>This is a <strong>Last Call Working Draft</strong>. The deadline for
164+
comments is <strong>31 January 2013</strong>.
165165

166166
<h2 class="no-num no-toc" id=contents> Table of Contents</h2>
167167
<!--begin-toc-->
@@ -277,7 +277,7 @@ <h2 class="no-num no-toc" id=contents> Table of Contents</h2>
277277

278278
<h2 id=intro><span class=secno>1. </span> Introduction</h2>
279279

280-
<p><em>This subsection is informative.</em>
280+
<p><em>This subsection is non-normative.</em>
281281

282282
<p>This module covers text decoration, i.e. decorating the glyphs of the
283283
text once typeset according to font and typographic rules. (See <a
@@ -1033,8 +1033,9 @@ <h3 id=line-position><span class=secno>2.7. </span> Determining the
10331033
decorated fragment at that fragment's ideal position. (Essentially, this
10341034
performs the same sort of averaging as for alphabetic underlines, but
10351035
recomputes the position when drawing across a descendant with a different
1036-
computed ‘<code class=property>font-size</code>’.) <span
1037-
class=issue>Need an example here</span>
1036+
computed ‘<code class=property>font-size</code>’. This ensures that
1037+
the text remains effectively "crossed out" despite any font size
1038+
changes.)
10381039
</dl>
10391040

10401041
<p> CSS does not define the thickness of line decorations. In determining
@@ -1052,6 +1053,15 @@ <h3 id=line-position><span class=secno>2.7. </span> Determining the
10521053
<p>In the three fragments of underlined text, the underline is drawn
10531054
consecutively lower and thicker as the ratio of large text to small text
10541055
increases.
1056+
1057+
<p>Using the same example, a line-through would in the second fragment,
1058+
instead of averaging the two font sizes, split the line-through into two
1059+
segments:
1060+
1061+
<p><img alt="" src=linethrough-averaging.gif>
1062+
1063+
<p>In both cases, however, the superscript, due to the vertical-alignment
1064+
shift, has no effect on the position of the line.
10551065
</div>
10561066

10571067
<div class=note>

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

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ <h2 class="no-num no-toc" id="status">Status of this document</h2>
107107
its CR period if there are no (correct) implementations:</p>
108108
<ul>
109109
<li>the 'text-decoration-skip' property / ''ink'' value
110+
<li>the <a href="#line-position">line positioning rules</a>
110111
</ul>
111-
112-
<p>This is technically the first public working draft of this module,
113-
however it is merely an extract from the
114-
<a href="http://www.w3.org/TR/2012/WD-css3-text-20120814/">previous Working Draft of CSS Text Level 3</a>.
112+
113+
<p>This is a <strong>Last Call Working Draft</strong>.
114+
The deadline for comments is <strong>31 January 2013</strong>.
115115

116116
<h2 class="no-num no-toc" id="contents">
117117
Table of Contents</h2>
@@ -687,8 +687,8 @@ <h3 id="line-position">
687687
assigning any fragment with non-initial 'vertical-align' the ideal position of its parent.
688688
Position the portion of the line across each decorated fragment at that fragment's ideal position.
689689
(Essentially, this performs the same sort of averaging as for alphabetic underlines,
690-
but recomputes the position when drawing across a descendant with a different computed 'font-size'.)
691-
<span class="issue">Need an example here</span>
690+
but recomputes the position when drawing across a descendant with a different computed 'font-size'.
691+
This ensures that the text remains effectively "crossed out" despite any font size changes.)
692692
</dl>
693693

694694
<p>
@@ -708,6 +708,12 @@ <h3 id="line-position">
708708
<p>In the three fragments of underlined text, the underline is drawn
709709
consecutively lower and thicker as the ratio of large text to small
710710
text increases.</p>
711+
<p>Using the same example, a line-through would in the second fragment,
712+
instead of averaging the two font sizes,
713+
split the line-through into two segments:
714+
<p><img alt="" src="linethrough-averaging.gif">
715+
<p>In both cases, however, the superscript, due to the vertical-alignment shift,
716+
has no effect on the position of the line.
711717
</div>
712718

713719
<div class="note">
1.89 KB
Loading

0 commit comments

Comments
 (0)