From 7005ced0b5bc0e1f6606596d8c90c2bafc86ca00 Mon Sep 17 00:00:00 2001 From: Jeroen Van den Berghe Date: Tue, 17 Oct 2023 13:26:41 +0200 Subject: [PATCH] css: target both :root and :host to also cover usage in shadow DOM Inside shadow DOM :root can't be targeted, so :host should be used here for those cases. Solves issues #517 --- src/ui/css/diff2html.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/css/diff2html.css b/src/ui/css/diff2html.css index e604924..f133b01 100644 --- a/src/ui/css/diff2html.css +++ b/src/ui/css/diff2html.css @@ -5,7 +5,8 @@ * */ -:root { +:root, +:host { --d2h-bg-color: #fff; --d2h-border-color: #ddd;