Skip to content

Commit 1890a15

Browse files
committed
--HG-- extra : rebase_source : 267417db11a59d50cb85fc51b16462c5a3bdfa03
1 parent a588694 commit 1890a15

2 files changed

Lines changed: 86 additions & 23 deletions

File tree

css-text-decor/Overview.html

Lines changed: 57 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -235,24 +235,27 @@ <h2 class="no-num no-toc" id=contents> Table of Contents</h2>
235235
<li><a href="#text-shadow-property"><span class=secno>4. </span> Text
236236
Shadows: the ‘<code class=property>text-shadow</code>’ property</a>
237237

238-
<li><a href="#conformance"><span class=secno>5. </span> Conformance</a>
238+
<li><a href="#painting-order"><span class=secno>5. </span> Painting Order
239+
of Text Decorations</a>
240+
241+
<li><a href="#conformance"><span class=secno>6. </span> Conformance</a>
239242
<ul class=toc>
240-
<li><a href="#conventions"><span class=secno>5.1. </span> Document
243+
<li><a href="#conventions"><span class=secno>6.1. </span> Document
241244
Conventions</a>
242245

243-
<li><a href="#conformance-classes"><span class=secno>5.2. </span>
246+
<li><a href="#conformance-classes"><span class=secno>6.2. </span>
244247
Conformance Classes</a>
245248

246-
<li><a href="#partial"><span class=secno>5.3. </span> Partial
249+
<li><a href="#partial"><span class=secno>6.3. </span> Partial
247250
Implementations</a>
248251

249-
<li><a href="#experimental"><span class=secno>5.4. </span> Experimental
252+
<li><a href="#experimental"><span class=secno>6.4. </span> Experimental
250253
Implementations</a>
251254

252-
<li><a href="#testing"><span class=secno>5.5. </span>Non-Experimental
255+
<li><a href="#testing"><span class=secno>6.5. </span>Non-Experimental
253256
Implementations</a>
254257

255-
<li><a href="#cr-exit-criteria"><span class=secno>5.6. </span> CR Exit
258+
<li><a href="#cr-exit-criteria"><span class=secno>6.6. </span> CR Exit
256259
Criteria</a>
257260
</ul>
258261

@@ -365,7 +368,7 @@ <h2 id=line-decoration><span class=secno>2. </span> Line Decoration:
365368
<em>applied</em> to such boxes.
366369

367370
<p> By default underlines, overlines, and line-throughs are applied only to
368-
non-replaced inline boxes, and are drawn over all text (including white
371+
non-replaced inline boxes, and are drawn across all text (including white
369372
space, letter spacing, and word spacing). Atomic inlines, such as images,
370373
are not decorated. The ‘<a href="#text-decoration-skip"><code
371374
class=property>text-decoration-skip</code></a>’ property can be used to
@@ -803,9 +806,9 @@ <h3 id=text-decoration-skip-property><span class=secno>2.5. </span> Text
803806
class=css>ink</code></dfn>
804807

805808
<dd>Skip over where glyphs are drawn: interrupt the decoration line to let
806-
text show through where the text decoration would otherwise cross over a
807-
glyph. The UA may also skip a small distance to either side of the glyph
808-
outline.
809+
the shape of the text show through where the text decoration would
810+
otherwise cross over a glyph. The UA must skip a small distance to either
811+
side of the glyph outline.
809812
<div class=figure>
810813
<p><img
811814
alt="An alphabetic underline through Myanmar text skips around descenders and the vertical strokes of combining characters that drop below the alphabetic baseline."
@@ -1710,9 +1713,45 @@ <h2 id=text-shadow-property><span class=secno>4. </span> Text Shadows: the
17101713
property applies to both the <code>::first-line</code> and
17111714
<code>::first-letter</code> pseudo-elements.
17121715

1713-
<h2 id=conformance><span class=secno>5. </span> Conformance</h2>
1716+
<h2 id=painting-order><span class=secno>5. </span> Painting Order of Text
1717+
Decorations</h2>
1718+
1719+
<p> As in <a href="#CSS21" rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a>,
1720+
text decorations are drawn immediately over/under the text they decorate,
1721+
in the following order (bottommost first):
1722+
1723+
<ul>
1724+
<li>shadows (‘<a href="#text-shadow"><code
1725+
class=property>text-shadow</code></a>’)
1726+
1727+
<li>underlines (‘<a href="#text-decoration"><code
1728+
class=property>text-decoration</code></a>’)
1729+
1730+
<li>overlines (‘<a href="#text-decoration"><code
1731+
class=property>text-decoration</code></a>’)
1732+
1733+
<li>text
1734+
1735+
<li>emphasis marks (‘<a href="#text-emphasis"><code
1736+
class=property>text-emphasis</code></a>’)
1737+
1738+
<li>line-through (‘<a href="#text-decoration"><code
1739+
class=property>text-decoration</code></a>’)
1740+
</ul>
1741+
1742+
<p> Text decorations are graphically affected by
1743+
filters/opacity/transformations/etc. atomically with the text they
1744+
decorate.
1745+
1746+
<p> Where line decorations are drawn across box decorations or atomic
1747+
inlines, they are drawn over non-positioned content and just below any
1748+
positioned descendants (immediately below layer #8 in CSS2.1 Appendix E).
1749+
These portions of a line decoration are graphically associated with the
1750+
affected box.
1751+
1752+
<h2 id=conformance><span class=secno>6. </span> Conformance</h2>
17141753

1715-
<h3 id=conventions><span class=secno>5.1. </span> Document Conventions</h3>
1754+
<h3 id=conventions><span class=secno>6.1. </span> Document Conventions</h3>
17161755

17171756
<p>Conformance requirements are expressed with a combination of descriptive
17181757
assertions and RFC 2119 terminology. The key words “MUST”, “MUST
@@ -1739,7 +1778,7 @@ <h3 id=conventions><span class=secno>5.1. </span> Document Conventions</h3>
17391778

17401779
<p class=note>Note, this is an informative note.
17411780

1742-
<h3 id=conformance-classes><span class=secno>5.2. </span> Conformance
1781+
<h3 id=conformance-classes><span class=secno>6.2. </span> Conformance
17431782
Classes</h3>
17441783

17451784
<p>Conformance to CSS Text Level 3 is defined for three conformance
@@ -1783,7 +1822,7 @@ <h3 id=conformance-classes><span class=secno>5.2. </span> Conformance
17831822
other conformance requirements of style sheets as described in this
17841823
module.
17851824

1786-
<h3 id=partial><span class=secno>5.3. </span> Partial Implementations</h3>
1825+
<h3 id=partial><span class=secno>6.3. </span> Partial Implementations</h3>
17871826

17881827
<p>So that authors can exploit the forward-compatible parsing rules to
17891828
assign fallback values, CSS renderers <strong>must</strong> treat as
@@ -1797,7 +1836,7 @@ <h3 id=partial><span class=secno>5.3. </span> Partial Implementations</h3>
17971836
unsupported values must be), CSS requires that the entire declaration be
17981837
ignored.
17991838

1800-
<h3 id=experimental><span class=secno>5.4. </span> Experimental
1839+
<h3 id=experimental><span class=secno>6.4. </span> Experimental
18011840
Implementations</h3>
18021841

18031842
<p>To avoid clashes with future CSS features, the CSS2.1 specification
@@ -1811,7 +1850,7 @@ <h3 id=experimental><span class=secno>5.4. </span> Experimental
18111850
vendor-prefixed syntax for such features, including those in W3C Working
18121851
Drafts. This avoids incompatibilities with future changes in the draft.
18131852

1814-
<h3 id=testing><span class=secno>5.5. </span>Non-Experimental
1853+
<h3 id=testing><span class=secno>6.5. </span>Non-Experimental
18151854
Implementations</h3>
18161855

18171856
<p>Once a specification reaches the Candidate Recommendation stage,
@@ -1833,7 +1872,7 @@ <h3 id=testing><span class=secno>5.5. </span>Non-Experimental
18331872
href="http://lists.w3.org/Archives/Public/public-css-testsuite">public-css-testsuite@w3.org</a>
18341873
mailing list.
18351874

1836-
<h3 id=cr-exit-criteria><span class=secno>5.6. </span> CR Exit Criteria</h3>
1875+
<h3 id=cr-exit-criteria><span class=secno>6.6. </span> CR Exit Criteria</h3>
18371876

18381877
<p> For this specification to be advanced to Proposed Recommendation, there
18391878
must be at least two independent, interoperable implementations of each

css-text-decor/Overview.src.html

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ <h2 id="line-decoration">
201201

202202
<p>
203203
By default underlines, overlines, and line-throughs are applied only to non-replaced inline boxes,
204-
and are drawn over all text (including white space, letter spacing, and word spacing).
204+
and are drawn across all text (including white space, letter spacing, and word spacing).
205205
Atomic inlines, such as images, are not decorated.
206206
The 'text-decoration-skip' property can be used to modify this behavior,
207207
for example allowing atomic inlines to be underlined
@@ -497,10 +497,10 @@ <h3 id="text-decoration-skip-property">
497497
and all <i>word separator characters</i>,
498498
plus any adjacent letter-spacing or word-spacing [[!CSS3TEXT]].
499499
<dt><dfn title="text-decoration-skip:ink">''ink''</dfn></dt>
500-
<dd>Skip over where glyphs are drawn: interrupt the decoration
501-
line to let text show through where the text decoration would
502-
otherwise cross over a glyph. The UA may also skip a small
503-
distance to either side of the glyph outline.
500+
<dd>Skip over where glyphs are drawn:
501+
interrupt the decoration line to let the shape of the text show through
502+
where the text decoration would otherwise cross over a glyph.
503+
The UA must skip a small distance to either side of the glyph outline.
504504
<div class="figure">
505505
<p><img title="text-decoration-skip: ink"
506506
alt="An alphabetic underline through Myanmar text skips around descenders and the vertical strokes of combining characters that drop below the alphabetic baseline."
@@ -1164,6 +1164,30 @@ <h2 id="text-shadow-property">
11641164
<code>::first-line</code> and <code>::first-letter</code>
11651165
pseudo-elements.</p>
11661166

1167+
<h2 id="painting-order">
1168+
Painting Order of Text Decorations</h2>
1169+
1170+
<p>
1171+
As in [[!CSS21]], text decorations are drawn immediately over/under the text they decorate,
1172+
in the following order (bottommost first):
1173+
<ul>
1174+
<li>shadows ('text-shadow')
1175+
<li>underlines ('text-decoration')
1176+
<li>overlines ('text-decoration')
1177+
<li>text
1178+
<li>emphasis marks ('text-emphasis')
1179+
<li>line-through ('text-decoration')
1180+
</ul>
1181+
<p>
1182+
Text decorations are graphically affected by filters/opacity/transformations/etc.
1183+
atomically with the text they decorate.
1184+
1185+
<p>
1186+
Where line decorations are drawn across box decorations or atomic inlines,
1187+
they are drawn over non-positioned content and just below any positioned descendants
1188+
(immediately below layer #8 in CSS2.1 Appendix E).
1189+
These portions of a line decoration are graphically associated with the affected box.
1190+
11671191
<h2 id="conformance">
11681192
Conformance</h2>
11691193

0 commit comments

Comments
 (0)