diff --git a/Tests/LibWeb/Ref/reference/svg-stroke-paintstyle-with-opacity-ref.html b/Tests/LibWeb/Ref/reference/svg-stroke-paintstyle-with-opacity-ref.html
new file mode 100644
index 0000000000..30438a9e9f
--- /dev/null
+++ b/Tests/LibWeb/Ref/reference/svg-stroke-paintstyle-with-opacity-ref.html
@@ -0,0 +1,14 @@
+
+
diff --git a/Tests/LibWeb/Ref/svg-stroke-paintstyle-with-opacity.html b/Tests/LibWeb/Ref/svg-stroke-paintstyle-with-opacity.html
new file mode 100644
index 0000000000..4f53aa0234
--- /dev/null
+++ b/Tests/LibWeb/Ref/svg-stroke-paintstyle-with-opacity.html
@@ -0,0 +1,15 @@
+
+
+
diff --git a/Userland/Libraries/LibWeb/Painting/RecordingPainter.cpp b/Userland/Libraries/LibWeb/Painting/RecordingPainter.cpp
index 1290918bef..1e517efe8d 100644
--- a/Userland/Libraries/LibWeb/Painting/RecordingPainter.cpp
+++ b/Userland/Libraries/LibWeb/Painting/RecordingPainter.cpp
@@ -91,6 +91,7 @@ void RecordingPainter::stroke_path(StrokePathUsingPaintStyleParams params)
.path = params.path,
.paint_style = params.paint_style,
.thickness = params.thickness,
+ .opacity = params.opacity,
.aa_translation = aa_translation,
});
}