text-decoration-subelements-005.html (687B)
1 <!DOCTYPE html> 2 <title>Test case for text-decoration with subelements</title> 3 <meta name="assert" content="Test decorations propagate to block-in-inline, as in the EXAMPLE 1 of the spec"> 4 <link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org"> 5 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-underline-position-property"> 6 <link rel="match" href="reference/text-decoration-subelements-005-ref.html"> 7 <style> 8 div { 9 text-decoration: underline; 10 } 11 span { 12 display: block; 13 } 14 </style> 15 <div> 16 From EXAMPLE 1 of the spec. 17 <span> 18 This text is also underlined, 19 as it is in an in-flow block to which the underline is propagated. 20 </span> 21 </div>