@@ -12,9 +12,9 @@ Previous Version: https://www.w3.org/TR/2018/CR-css-text-decor-3-20180703/
12
12
Previous Version : https://www.w3.org/TR/2013/CR-css-text-decor-3-20130801/
13
13
Previous Version : https://www.w3.org/TR/2013/WD-css-text-decor-3-20130103/
14
14
Previous Version : https://www.w3.org/TR/2012/WD-css-text-decor-3-20121113/
15
- Issue Tracking : Tracker http://www.w3.org/Style/CSS/Tracker/products/10
16
15
Editor : Elika J. Etemad / fantasai, Invited Expert, http://fantasai.inkedblade.net/contact, w3cid 35400
17
16
Editor : Koji Ishii, Google, kojiishi@gmail.com, w3cid 45369
17
+ Implementation Report : https://wpt.fyi/results/css/css-text-decor
18
18
Abstract : This module contains the features of CSS relating to text decoration, such as underlines, text shadows, and emphasis marks.
19
19
At Risk : The ability to place both emphasis marks and ruby on the same base text.
20
20
Link Defaults : css-color-3 (property) color
@@ -68,9 +68,9 @@ Value Definitions</h3>
68
68
69
69
<h3 id="terms">Terminology</h3>
70
70
71
- The terms <dfn>< a href="https://www.w3.org/TR/css-text-3/#grapheme-cluster">character</a></dfn > ,
72
- <dfn>< a href="https://www.w3.org/TR/css-text-3/#letter">letter</a></dfn > , and
73
- <dfn>< a href="https://www.w3.org/TR/css-text-3/#content-language">content language</a></dfn >
71
+ The terms <a href="https://www.w3.org/TR/css-text-3/#grapheme-cluster">character</a> ,
72
+ <a href="https://www.w3.org/TR/css-text-3/#letter">letter</a> , and
73
+ <a href="https://www.w3.org/TR/css-text-3/#content-language">content language</a>
74
74
as used in this specification are defined in [[!CSS-TEXT-3]] .
75
75
Other terminology and concepts used in this specification are defined
76
76
in [[!CSS2]] and [[!CSS-WRITING-MODES-4]] .
@@ -103,12 +103,12 @@ Line Decoration: Underline, Overline, and Strike-Through</h2>
103
103
and are drawn across all text (including white space, letter spacing, and word spacing)
104
104
except spacing (white space, letter spacing, and word spacing) at the beginning and end of a line.
105
105
<a>Atomic inlines</a> , such as images and inline blocks, are not decorated.
106
- Margins, borders, and padding of the <i> decorating box</i> are always skipped,
106
+ Margins, borders, and padding of the [= decorating box=] are always skipped,
107
107
however the margins, border, and padding of descendant <a>inline boxes</a> are not.
108
108
109
109
<p class='note'>
110
110
Note that CSS 2.1 required skipping margins, borders, and padding always.
111
- In this level, by default only the margins, borders, and padding of the <i> decorating box</i> are skipped.
111
+ In this level, by default only the margins, borders, and padding of the [= decorating box=] are skipped.
112
112
In the future CSS2.1 may be updated to match this new default.
113
113
Also, control over decorating leading/trailing spaces is expected in Level 4,
114
114
and will be applied by default to the HTML <{ins}> and <{del}> elements.
@@ -181,7 +181,7 @@ Line Decoration: Underline, Overline, and Strike-Through</h2>
181
181
(In the case of line decorations drawn over an atomic inline
182
182
or across the margins/borders/padding of a non-replaced inline box,
183
183
they are analogously associated with the affected atomic inline / non-replaced inline box
184
- rather than with the <i> decorating box</i> .)
184
+ rather than with the [= decorating box=] .)
185
185
186
186
<div class="example">
187
187
In the following style sheet and document fragment:
@@ -402,7 +402,7 @@ Text Underline Position: the 'text-underline-position' property</h3>
402
402
403
403
<dt> <dfn id="underline-under">under</dfn>
404
404
<dd>
405
- The underline is positioned <i> under</i> the element's text content.
405
+ The underline is positioned [= under=] the element's text content.
406
406
In this case the underline usually does not cross the descenders.
407
407
(This is sometimes called “accounting” underline.)
408
408
This value can be combined with ''text-underline-position/left'' or ''text-underline-position/right''
@@ -475,7 +475,7 @@ Text Underline Position: the 'text-underline-position' property</h3>
475
475
The exact position and thickness of line decorations is UA-defined in this level.
476
476
However, for underlines and overlines
477
477
the UA must use a single thickness and position on each line
478
- for the decorations deriving from a single <i> decorating box</i> .
478
+ for the decorations deriving from a single [= decorating box=] .
479
479
480
480
<div class="figure">
481
481
<img src="images/underline-single.png"
@@ -489,7 +489,7 @@ Text Underline Position: the 'text-underline-position' property</h3>
489
489
<div class="note">
490
490
Note, since line decorations can span elements with varying font sizes and
491
491
vertical alignments, the best position for a line decoration is not
492
- necessarily the ideal position dictated by the <i> decorating box</i> .
492
+ necessarily the ideal position dictated by the [= decorating box=] .
493
493
For example, an overline positioned to a small font
494
494
will effectively become a line-through if the element contains text in a significantly larger font-size.
495
495
Even for underlines, if the text is not aligned to the alphabetic baseline
@@ -512,11 +512,11 @@ Text Underline Position: the 'text-underline-position' property</h3>
512
512
</div>
513
513
514
514
UAs <em> must</em> adjust line positions
515
- to match the shifted metrics of <i> decorating boxes</i> shifted
515
+ to match the shifted metrics of [= decorating boxes=] shifted
516
516
with 'vertical-align' values other than ''vertical-align/baseline'' [[!CSS2]]
517
517
or subscripted/superscripted via 'font-variant-position' [[!CSS-FONTS-3]] ,
518
518
but <em> must not</em> adjust the line position or thickness
519
- in response to descendants of a <i> decorating box</i> that are so styled.
519
+ in response to descendants of a [= decorating box=] that are so styled.
520
520
This allows superscripts and subscripts to be properly decorated
521
521
(underlined, struck through, etc.)
522
522
but prevents them from distorting or breaking the positioning of such decorations on their ancestors.
@@ -616,7 +616,7 @@ Emphasis Mark Style: the 'text-emphasis-style' property</h3>
616
616
617
617
<dt> <dfn><<string>></dfn>
618
618
<dd> Display the given string as marks.
619
- Authors should not specify more than one <i> character</i> in <string>.
619
+ Authors should not specify more than one [= character=] in <string>.
620
620
The UA may truncate or ignore strings consisting of more than one grapheme cluster.
621
621
</dl>
622
622
@@ -1006,7 +1006,7 @@ Appendix B: Default UA Stylesheet</h2>
1006
1006
<h2 class="no-num" id="changes">Appendix C:
1007
1007
Changes</h2>
1008
1008
1009
- <h3 class="no-num" id="changes-2018 ">
1009
+ <h3 class="no-num" id="changes-2019 ">
1010
1010
Changes since the <a href="https://www.w3.org/TR/2019/CR-css-text-decor-3-20190813/">August 2019 Candidate Recommendation</a></h3>
1011
1011
1012
1012
Changes include:
0 commit comments