From 87e8ca6a2cbb9021c12ca3d1d988c063b1de8616 Mon Sep 17 00:00:00 2001 From: Tab Atkins Jr Date: Mon, 18 Dec 2023 14:12:54 -0800 Subject: [PATCH] Make typogram diagrams work in dark mode (#528) --- spec/index.bs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spec/index.bs b/spec/index.bs index 136bfe8d..7eef8d54 100644 --- a/spec/index.bs +++ b/spec/index.bs @@ -74,6 +74,15 @@ dl.domintro dt code { padding: 8px; border-left: 8px solid brown; } + +/* temporary fixes to the typogram diagrams + to support dark mode properly */ +script + svg :is(polygon, line, rect):not(.grid) { + stroke: currentcolor; +} +script + svg :is(polygon, text) { + fill: currentcolor; +}