You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This property specifies what parts of the element's content
252
+
any text decoration affecting the element must skip over. It
253
+
controls all text decoration lines drawn by the element
254
+
and also any text decoration lines drawn by its ancestors.
255
+
Values have the following meanings:</p>
256
+
257
+
<dl>
258
+
<dt><dfn value for="text-decoration-skip">none</dfn></dt>
259
+
<dd>
260
+
Skip nothing: text-decoration is drawn for all text content
261
+
and across atomic inline-level boxes.</dd>
262
+
263
+
<dt><dfn value for="text-decoration-skip">objects</dfn></dt>
264
+
<dd>
265
+
Skip this element (its entire margin box) if it is an atomic inline
266
+
(such as an image or inline-block).
267
+
268
+
<dt><dfn value for="text-decoration-skip">spaces</dfn></dt>
269
+
<dd>
270
+
Skip all spacing, i.e. all <i>characters</i> with the Unicode White_Space property [[UAX44]]
271
+
and all <a href="https://www.w3.org/TR/css3-text/#word-separator">word separators</a>,
272
+
plus any adjacent 'letter-spacing' or 'word-spacing'.
273
+
274
+
<dt><dfn value for="text-decoration-skip">ink</dfn></dt>
275
+
<dd>
276
+
Skip over where glyphs are drawn:
277
+
interrupt the decoration line to let the shape of the text show through
278
+
where the text decoration would otherwise cross over a glyph.
279
+
The UA must also skip a small distance to either side of the glyph outline.
280
+
281
+
<div class="figure">
282
+
<p><img title="text-decoration-skip: ink"
283
+
alt="An alphabetic underline through Myanmar text skips around descenders and the vertical strokes of combining characters that drop below the alphabetic baseline."
Copy file name to clipboardExpand all lines: css-text-decor/Overview.bs
+25-86Lines changed: 25 additions & 86 deletions
Original file line number
Diff line number
Diff line change
@@ -100,13 +100,31 @@ Line Decoration: Underline, Overline, and Strike-Through</h2>
100
100
although the decoration is <em>applied</em> to such boxes.
101
101
102
102
<p>
103
-
By default underlines, overlines, and line-throughs are applied only to non-replaced inline boxes,
103
+
Underlines, overlines, and line-throughs are applied only to non-replaced inline boxes,
104
104
and are drawn across all text (including white space, letter spacing, and word spacing).
105
-
Atomic inlines, such as images, are not decorated.
106
-
The 'text-decoration-skip' property can be used to modify this behavior,
107
-
for example allowing atomic inlines to be underlined
108
-
or requiring that white space be skipped.
109
-
Margins, borders, and padding of the <i>decorating box</i> are always skipped.
105
+
Atomic inlines, such as images and inline blocks, are not decorated.
106
+
Margins, borders, and padding of the <i>decorating box</i> are always skipped,
107
+
however the margins, border, and padding of descendant inline boxes are not.
108
+
109
+
<p class='note'>
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.
112
+
In the future CSS2.1 may be updated to match this new default.
113
+
114
+
<p>
115
+
UAs <em>may</em> interrupt underlines and overlines where the line would cross glyph ink
116
+
and to some distance to either side of the glyph outline;
117
+
this behavior is not controllable in this level,
118
+
but will be further defined in Level 4.
119
+
Line-throughs must remain continuous, however.
120
+
121
+
<div class="figure">
122
+
<p><img title="text-decoration-skip: ink"
123
+
alt="An alphabetic underline through Myanmar text skips around descenders and the vertical strokes of combining characters that drop below the alphabetic baseline."
defines additional values (''leading-spaces'' and ''trailing-spaces''),
267
-
and uses them in the initial value of this property,
268
-
meaning that by default they are skipped.
269
-
At the time of writing,
270
-
this is experimental and may still change,
271
-
which is why it has not been incorporated into this level.
272
-
273
-
<p>This property specifies what parts of the element's content
274
-
any text decoration affecting the element must skip over. It
275
-
controls all text decoration lines drawn by the element
276
-
and also any text decoration lines drawn by its ancestors.
277
-
Values have the following meanings:</p>
278
-
279
-
<dl>
280
-
<dt><dfn value for="text-decoration-skip">none</dfn></dt>
281
-
<dd>Skip nothing: text-decoration is drawn for all text content
282
-
and across atomic inline-level boxes.</dd>
283
-
<dt><dfn value for="text-decoration-skip">objects</dfn></dt>
284
-
<dd>Skip this element (its entire margin box) if it is an atomic inline
285
-
(such as an image or inline-block).
286
-
<dt><dfn value for="text-decoration-skip">spaces</dfn></dt>
287
-
<dd>Skip all spacing, i.e. all <i>characters</i> with the Unicode White_Space property [[UAX44]]
288
-
and all <a href="https://www.w3.org/TR/css3-text/#word-separator">word separators</a>,
289
-
plus any adjacent 'letter-spacing' or 'word-spacing'.
290
-
<dt><dfn value for="text-decoration-skip">ink</dfn></dt>
291
-
<dd>Skip over where glyphs are drawn:
292
-
interrupt the decoration line to let the shape of the text show through
293
-
where the text decoration would otherwise cross over a glyph.
294
-
The UA must also skip a small distance to either side of the glyph outline.
295
-
<div class="figure">
296
-
<p><img title="text-decoration-skip: ink"
297
-
alt="An alphabetic underline through Myanmar text skips around descenders and the vertical strokes of combining characters that drop below the alphabetic baseline."
0 commit comments