Skip to content

Commit 8907452

Browse files
authored
Fix dark mode SVG
Fixes #423
1 parent a587d57 commit 8907452

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

index.bs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,16 @@ The [=task source=] for the [=tasks=] mentioned in this specification is the <df
958958
}
959959
</style>
960960
<svg xmlns="http://www.w3.org/2000/svg" height="79pt" viewBox="0.00 0.00 351.00 78.51" width="351pt">
961+
<style>
962+
@media (prefers-color-scheme: dark) {
963+
path {
964+
filter:invert(1);
965+
}
966+
text {
967+
fill:white;
968+
}
969+
}
970+
</style>
961971
<g class="graph" transform="scale(1 1) rotate(0) translate(4 74.5122)">
962972
<title>Sensor lifecycle</title>
963973
<a xlink:href="#dom-sensor-state-slot">

0 commit comments

Comments
 (0)