Alternate title: _Applying #6684-similar fix to stroke_
#6684 makes sure the "current" transformation, at the moment of filling radial gradients is the `baseTransform` (that of the rescource (page), as it says in the specs). However, this should also be fixed in [`CanvasGraphics_stroke`](https://github.com/dsprenkels/pdf.js/blob/a9081653fc565eb72c3eb5142c17088cb162e7ce/src/display/canvas.js#L1052).

this.ctx.closePath();
    }
    stroke(consumePath) {
      consumePath = typeof consumePath !== "undefined" ? consumePath : true;
      const ctx = this.ctx;
      const strokeColor = this.current.strokeColor;
      
      
      ctx.globalAlpha = this.current.strokeAlpha;
      if (this.contentVisible) {
        if (typeof strokeColor === "object" && strokeColor?.getPattern) {
          
          
          ctx.save();
          
          
          
          
          const transform = ctx.mozCurrentTransform;
          const scale = Util.singularValueDecompose2dScale(transform)[0];
          ctx.strokeStyle = strokeColor.getPattern(ctx, this);
          const lineWidth = this.getSinglePixelWidth();
          const scaledLineWidth = this.current.lineWidth * scale;
          if (lineWidth < 0 && -lineWidth >= scaledLineWidth) {
            ctx.resetTransform();
            ctx.lineWidth = Math.round(this._combinedScaleFactor);
          } else {
            ctx.lineWidth = Math.max(lineWidth, scaledLineWidth);
          }