Attach (recommended) or Link to PDF file here: [ICEE-B.2017.8192026.pdf](https://github.com/mozilla/pdf.js/files/6651211/ICEE-B.2017.8192026.pdf)

Configuration:
- Web browser and its version:  Firefox 89.0 (64-bit)
- Operating system and its version: Windows 10 Pro Version 21H1
- PDF.js version: I don't know, sorry
- Is a browser extension: No

Steps to reproduce the problem:
1. Open PDF
2. Figure 1 in page 2 is missing

What is the expected behavior? (add screenshot)
This is how it looks in Edge
![image](https://user-images.githubusercontent.com/40286841/121958287-839b0b80-cd31-11eb-8400-7d9c088d83fa.png)

What went wrong? (add screenshot)
This is how it looks in firefox
![image](https://user-images.githubusercontent.com/40286841/121958359-99a8cc00-cd31-11eb-9d15-b94d5884e03d.png)


Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

let k;
    if (y < y1) {
      k = 0;
    } else if (y > y3) {
      k = 1;
    } else {
      k = (y1 - y) / (y1 - y3);
    }
    xb = x1 - (x1 - x3) * k;
    cbr = c1r - (c1r - c3r) * k;
    cbg = c1g - (c1g - c3g) * k;
    cbb = c1b - (c1b - c3b) * k;
    const x1_ = Math.round(Math.min(xa, xb));
    const x2_ = Math.round(Math.max(xa, xb));
    let j = rowSize * y + x1_ * 4;
    for (let x = x1_; x <= x2_; x++) {
      k = (xa - x) / (xa - xb);
      if (k < 0) {
        k = 0;
      } else if (k > 1) {
        k = 1;
      }
      bytes[j++] = (car - (car - cbr) * k) | 0;
      bytes[j++] = (cag - (cag - cbg) * k) | 0;
      bytes[j++] = (cab - (cab - cbb) * k) | 0;
      bytes[j++] = 255;
    }
  }
}
function drawFigure(data, figure, context) {