Skip to content

Commit 7005ced

Browse files
author
Jeroen Van den Berghe
committed
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
1 parent 99b7757 commit 7005ced

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ui/css/diff2html.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
*
66
*/
77

8-
:root {
8+
:root,
9+
:host {
910
--d2h-bg-color: #fff;
1011
--d2h-border-color: #ddd;
1112

0 commit comments

Comments
 (0)