Skip to content

Commit 0c1a062

Browse files
committed
[css-text-decor] decorating element -> decorating box
1 parent 7c1f3f9 commit 0c1a062

File tree

2 files changed

+25
-21
lines changed

2 files changed

+25
-21
lines changed

css-text-decor/Overview.html

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -825,10 +825,11 @@ <h3 id=text-decoration-skip-property><span class=secno>2.5. </span> Text
825825
class=css>edges</code></dfn>
826826

827827
<dd>The UA should place the start and end of the line inwards slightly
828-
(e.g. by half a line thickness) from the content edge of the
829-
<i>decorating element</i> so that, e.g. two underlined elements
830-
side-by-side do not appear to have a single underline. (This is important
831-
in Chinese, where underlining is a form of punctuation.)
828+
(e.g. by half a line thickness) from the content edge of the <a
829+
href="#decorating-box"><i>decorating box</i></a> so that, e.g. two
830+
underlined elements side-by-side do not appear to have a single
831+
underline. (This is important in Chinese, where underlining is a form of
832+
punctuation.)
832833
<div class=figure>
833834
<p><img
834835
alt="An underline below a series of Chinese characters has a gap between two adjacent underlining elements."
@@ -844,17 +845,18 @@ <h3 id=text-decoration-skip-property><span class=secno>2.5. </span> Text
844845
class=css>box-decoration</code></dfn>
845846

846847
<dd> Skip over the box's margin, border, and padding areas. Note that this
847-
only has an effect on decorations imposed by an ancestor; a <i>decorating
848-
element</i> never draws over its own box decoration.
848+
only has an effect on decorations imposed by an ancestor; a <a
849+
href="#decorating-box"><i>decorating box</i></a> never draws over its own
850+
box decoration.
849851
</dl>
850852

851853
<p class=note>Note that this property inherits and that descendant elements
852854
can have a different setting.
853855

854856
<p class=note> Note that CSS 2.1 required skipping margins, borders, and
855857
padding always. In this level, by default only the margins, borders, and
856-
padding of the <i>decorating element</i> are skipped. In the future CSS2.1
857-
may be updated to match this new default.
858+
padding of the <a href="#decorating-box"><i>decorating box</i></a> are
859+
skipped. In the future CSS2.1 may be updated to match this new default.
858860

859861
<h3 id=text-underline-position-property><span class=secno>2.6. </span> Text
860862
Underline Position: the ‘<a href="#text-underline-position"><code
@@ -1037,18 +1039,20 @@ <h3 id=line-position><span class=secno>2.7. </span> Determining the
10371039

10381040
<p>Since line decorations can span elements with varying font sizes and
10391041
vertical alignments, the best position for a line decoration is not
1040-
necessarily the ideal position dictated by the decorating element. In
1041-
determining the position of text decoration lines, user agents must
1042-
consider, for each <a href="#decorating-box"><i>decorating box</i></a>,
1043-
the “ideal” positions of such line decorations per fragment of the <a
1042+
necessarily the ideal position dictated by the <a
1043+
href="#decorating-box"><i>decorating box</i></a>. In determining the
1044+
position of text decoration lines, user agents must consider, for each <a
1045+
href="#decorating-box"><i>decorating box</i></a>, the “ideal”
1046+
positions of such line decorations per fragment of the <a
10441047
href="#decorating-box"><i>decorating box</i></a>—or its in-flow inline
10451048
descendant—that draws the text decoration. However, descendants of the
1046-
<i>decorating element</i> that are skipped due to ‘<a
1049+
<i>decorating boxF</i> that are skipped due to ‘<a
10471050
href="#text-decoration-skip"><code
10481051
class=property>text-decoration-skip</code></a>’, descendant inlines with
10491052
<code class=css>text-decoration-skip: ink</code>’, and any
1050-
descendants that do not participate in the <i>decorating element</i>’s
1051-
inline formatting context are excluded from consideration.
1053+
descendants that do not participate in the <a
1054+
href="#decorating-box"><i>decorating box</i></a>’s inline formatting
1055+
context are excluded from consideration.
10521056

10531057
<p> The line decoration positions are then calculated as follows (treating
10541058
<a href="#underline-left"><i>over</i>-positioned underlines</a> as

css-text-decor/Overview.src.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ <h3 id="text-decoration-skip-property">
515515
<dt><dfn title="text-decoration-skip:edges">''edges''</dfn></dt>
516516
<dd>The UA should place the start and end of the line inwards slightly
517517
(e.g. by half a line thickness)
518-
from the content edge of the <i>decorating element</i> so that,
518+
from the content edge of the <i>decorating box</i> so that,
519519
e.g. two underlined elements side-by-side do not appear to have a single underline.
520520
(This is important in Chinese, where underlining is a form of punctuation.)
521521
<div class="figure">
@@ -531,15 +531,15 @@ <h3 id="text-decoration-skip-property">
531531
<dd>
532532
Skip over the box's margin, border, and padding areas.
533533
Note that this only has an effect on decorations imposed by an ancestor;
534-
a <i>decorating element</i> never draws over its own box decoration.
534+
a <i>decorating box</i> never draws over its own box decoration.
535535
</dl>
536536

537537
<p class="note">Note that this property inherits and that descendant
538538
elements can have a different setting.</p>
539539

540540
<p class='note'>
541541
Note that CSS 2.1 required skipping margins, borders, and padding always.
542-
In this level, by default only the margins, borders, and padding of the <i>decorating element</i> are skipped.
542+
In this level, by default only the margins, borders, and padding of the <i>decorating box</i> are skipped.
543543
In the future CSS2.1 may be updated to match this new default.
544544

545545
<h3 id="text-underline-position-property">
@@ -684,16 +684,16 @@ <h3 id="line-position">
684684

685685
<p>Since line decorations can span elements with varying font sizes and
686686
vertical alignments, the best position for a line decoration is not
687-
necessarily the ideal position dictated by the decorating element.
687+
necessarily the ideal position dictated by the <i>decorating box</i>.
688688
In determining the position of text decoration lines,
689689
user agents must consider, for each <i>decorating box</i>,
690690
the “ideal” positions of such line decorations per fragment
691691
of the <i>decorating box</i>&mdash;or its in-flow inline descendant&mdash;that
692692
draws the text decoration.
693-
However, descendants of the <i>decorating element</i>
693+
However, descendants of the <i>decorating boxF</i>
694694
that are skipped due to 'text-decoration-skip',
695695
descendant inlines with ''text-decoration-skip: ink'',
696-
and any descendants that do not participate in the <i>decorating element</i>’s inline formatting context
696+
and any descendants that do not participate in the <i>decorating box</i>’s inline formatting context
697697
are excluded from consideration.
698698

699699
<p>

0 commit comments

Comments
 (0)