text-decoration-skip-spaces-003.html (1208B)
1 <!DOCTYPE html> 2 <html lang=en> 3 <meta charset="utf-8"> 4 <title>Decoration skipping spaces: preserved spaces with pre-wrap</title> 5 <meta name="assert" content="underlining of preserved spaces (with pre-wrap) get skipped at the start/end of the line."> 6 <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-spaces-property"> 7 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#line-decoration"> 8 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net"> 9 <link rel="match" href="reference/text-decoration-skip-spaces-002-ref.html"> 10 <style> 11 div { 12 /* Use separate longhands 13 as Safari does not support the full syntax of the text-decoration shorthand 14 at the time of writing, 15 but that's not what we're testing here. 16 */ 17 text-decoration: underline; 18 text-decoration-color: blue; 19 20 text-decoration-skip-spaces: start end; /* Theoretically not needed, as that's the default behavior per L3 */ 21 color: orange; 22 font-size: 2em; 23 white-space: pre-wrap; 24 } 25 </style> 26 27 <p>Test passes if there is an blue underline below orange letters A through F below, <em>but no further</em>. 28 29 <div> ABCDEF </div>