From d3f0c189b6d64840ae32e7d67904d8b9370e2eb7 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Sun, 26 May 2024 17:03:09 -0700 Subject: [PATCH] Scope ::highlight to

To reduce clutter in DevTools styles pane
---
 index.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.html b/index.html
index 1af9df8..8375734 100644
--- a/index.html
+++ b/index.html
@@ -192,7 +192,7 @@
         highlightStyle.textContent = '';
         highlights.forEach((highlight, i) => {
           CSS.highlights.set(`c${i}`, new Highlight(...highlight));
-          highlightStyle.textContent += `::highlight(c${i}){color:hsl(${i * 36}deg 50% 50%)}`;
+          highlightStyle.textContent += `pre::highlight(c${i}){color:hsl(${i * 36}deg 50% 50%)}`;
         });
       }
     });
-- 
2.47.3