custom-highlight-container-metrics-004-ref.html (604B)
1 <!DOCTYPE html> 2 <meta charset="UTF-8"> 3 <title>CSS Highlight API Test Reference</title> 4 <head> 5 <style> 6 .wrapper { 7 width: 200px; 8 height: 100px; 9 text-underline-offset: 4px; 10 text-decoration-line: underline; 11 text-decoration-color: green; 12 text-decoration-thickness: 4px; 13 } 14 #h2 { 15 text-underline-offset: 2svw; 16 text-decoration-line: underline; 17 text-decoration-color: green; 18 text-decoration-thickness: 4svh; 19 } 20 </style> 21 </head> 22 <body> 23 <div class="wrapper">With container size</div> 24 <div id="h2">Without container size</div> 25 </body>