@@ -348,14 +348,15 @@ <h2 id=line-decoration><span class=secno>2. </span> Line Decoration:
348348 out-of-flow descendants, nor to the contents of atomic inline-level
349349 descendants such as inline blocks and inline tables.
350350
351- < p > By default underlines, overlines, and line-throughs are applied only to
352- text (including white space, letter spacing, and word spacing): margins,
353- borders, and padding are skipped . Elements containing no text, such as
354- images, are likewise not decorated. The ‘< a
351+ < p > By default underlines, overlines, and line-throughs are applied only to
352+ non-replaced inline boxes, and are drawn over all text (including white
353+ space, letter spacing, and word spacing) . Elements containing no text,
354+ such as images, are not decorated. The ‘< a
355355 href ="#text-decoration-skip "> < code
356356 class =property > text-decoration-skip</ code > </ a > ’ property can be used to
357357 modify this behavior, for example allowing inline replaced elements to be
358- underlined or requiring that white space be skipped.
358+ underlined or requiring that white space be skipped. Margins, borders, and
359+ padding of the element originating the decoration are always skipped.
359360
360361 < p > In determining the position and thickness of text decoration lines, user
361362 agents may consider the font sizes and dominant baselines of descendants,
@@ -711,7 +712,7 @@ <h3 id=text-decoration-skip-property><span class=secno>2.5. </span> Text
711712 < tr >
712713 < th > < a href ="#values "> Value</ a > :
713714
714- < td > none | [ objects || spaces || ink || edges ]
715+ < td > none | [ objects || spaces || ink || edges || box-decoration ]
715716
716717 < tr >
717718 < th > Initial:
@@ -785,14 +786,22 @@ <h3 id=text-decoration-skip-property><span class=secno>2.5. </span> Text
785786 content edge of the decorating element so that, e.g. two underlined
786787 elements side-by-side do not appear to have a single underline. (This is
787788 important in Chinese, where underlining is a form of punctuation.)
788- </ dl >
789789
790- < p class =issue > Do we need a value that < em > doesn't</ em > skip margins and
791- padding?
790+ < dt > < dfn id =box-decoration
791+ title ="text-decoration-skip:box-decoration "> ‘< code
792+ class =css > box-decoration</ code > ’</ dfn >
793+
794+ < dd > Skip over the box's margin, border, and padding areas. Note that this
795+ only has an effect on decorations imposed by an ancestor.
796+ </ dl >
792797
793798 < p class =note > Note that this property inherits and that descendant elements
794799 can have a different setting.
795800
801+ < p class =note > Note that CSS 2.1 required skipping margins, borders, and
802+ padding always. In this level, by default only the margins, borders, and
803+ padding of the < i > decorating element</ i > are skipped.
804+
796805 < h4 id =text-underline-position-property > < span class =secno > 2.5.1. </ span >
797806 Text Underline Position: the ‘< a href ="#text-underline-position "> < code
798807 class =property > text-underline-position</ code > </ a > ’ property</ h4 >
0 commit comments