custom-highlight-painting-019-ref.html (431B)
1 <!DOCTYPE html> 2 <meta charset="UTF-8"> 3 <title>CSS Highlight API Reference: Non-overlapping highlight colors</title> 4 <style> 5 body { 6 text-decoration: 2px green underline; 7 } 8 .foo { 9 color:blue; 10 text-decoration: 2px blue underline; 11 } 12 .bar { 13 text-decoration: 2px currentColor underline; 14 } 15 </style> 16 <body><span class="foo">This part should be blue</span> and <span class="bar">this part should be black</span>