aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Deleplace <deleplace@google.com>2022-12-02 19:52:17 +0100
committerGopher Robot <gobot@golang.org>2023-01-24 15:30:23 +0000
commit5f0cede926d95ecf08e2ca70bdab18e9d6cfbebf (patch)
tree946afc689e24619c968a43ee088b6efa2f0cad6a
parent0258b1acda43f662e8952a1a2db45d0cc6f5c2ba (diff)
downloadgo-x-website-5f0cede926d95ecf08e2ca70bdab18e9d6cfbebf.tar.xz
_content/security/fuzz: fix transparent image for dark theme
Fixes golang/go#54954 Change-Id: Ie2db42fe32e791111486cbbe8f3a392934f4a174 Reviewed-on: https://go-review.googlesource.com/c/website/+/454875 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
-rw-r--r--_content/security/fuzz/example-dark.pngbin0 -> 75966 bytes
-rw-r--r--_content/security/fuzz/index.md9
2 files changed, 7 insertions, 2 deletions
diff --git a/_content/security/fuzz/example-dark.png b/_content/security/fuzz/example-dark.png
new file mode 100644
index 00000000..9a8bfe61
--- /dev/null
+++ b/_content/security/fuzz/example-dark.png
Binary files differ
diff --git a/_content/security/fuzz/index.md b/_content/security/fuzz/index.md
index 3ba7a5bf..201c8382 100644
--- a/_content/security/fuzz/index.md
+++ b/_content/security/fuzz/index.md
@@ -22,11 +22,16 @@ valuable for finding security exploits and vulnerabilities.
Below is an example of a [fuzz test](#glos-fuzz-test), highlighting its main
components.
-<img alt="Example code showing the overall fuzz test, with a fuzz target within
+<img class="DarkMode-img" alt="Example code showing the overall fuzz test, with a fuzz target within
it. Before the fuzz target is a corpus addition with f.Add, and the parameters
of the fuzz target are highlighted as the fuzzing arguments."
-src="/security/fuzz/example.png" style="display: block; width: 600px; height:
+src="/security/fuzz/example-dark.png" style="width: 600px; height:
auto;"/>
+<img alt="Example code showing the overall fuzz test, with a fuzz target within
+it. Before the fuzz target is a corpus addition with f.Add, and the parameters
+of the fuzz target are highlighted as the fuzzing arguments."
+src="/security/fuzz/example.png" style="width: 600px; height:
+auto;" class="LightMode-img"/>
## Writing fuzz tests