Skip to content

Commit ef6a1e3

Browse files
authored
Merge pull request #424 from tomayac/patch-1
Fix dark mode SVG
2 parents a587d57 + 02c4ff2 commit ef6a1e3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

index.bs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,17 @@ 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+
polygon {
965+
filter: invert(1);
966+
}
967+
text {
968+
fill: #fff;
969+
}
970+
}
971+
</style>
961972
<g class="graph" transform="scale(1 1) rotate(0) translate(4 74.5122)">
962973
<title>Sensor lifecycle</title>
963974
<a xlink:href="#dom-sensor-state-slot">

0 commit comments

Comments
 (0)