diff --git a/css-text-decor-3/Overview.bs b/css-text-decor-3/Overview.bs index 74604b9459b..7a672d592ea 100644 --- a/css-text-decor-3/Overview.bs +++ b/css-text-decor-3/Overview.bs @@ -216,6 +216,25 @@ Line Decoration: Underline, Overline, and Strike-Through represents the span element, and the orange lines represent the blocks. +
+ div { color: black; font-size: 48px; text-decoration: underline; text-shadow: blue 0px 50px 0px; } + span { font-size: 20px; vertical-align: top; text-shadow: green 0px 100px 0px; } ++
+ <div>Help, help! <span>I am under a hat!</span></div> ++ ...the <div> is the [=decorating box=] for its underline (in black), + which is rendered uninterrupted through both the <div> and the <span>. + Unlike line decorations, however, + `text-shadow` is inherited as a property; + therefore the green text shadow on the <span> + overrides the blue text shadow on the <div>. + As a result, when the shadows are painted, + the shadow of the <div>’s underline is disjoint across the two elements. +
+ div { color: black; font-size: 48px; text-decoration: underline; text-shadow: blue 0px 50px 0px; } + span { font-size: 20px; vertical-align: top; text-shadow: green 0px 100px 0px; } ++
+ <div>Help, help! <span>I am under a hat!</span></div> ++ ...the <div> is the [=decorating box=] for its underline (in black), + which is rendered uninterrupted through both the <div> and the <span>. + Unlike line decorations, however, + `text-shadow` is inherited as a property; + therefore the green text shadow on the <span> + overrides the blue text shadow on the <div>. + As a result, when the shadows are painted, + the shadow of the <div>’s underline is disjoint across the two elements. +