Attach (recommended) or Link to PDF file here:
[mytestfile.pdf](https://github.com/mozilla/pdf.js/files/7190033/mytestfile.pdf)

Configuration:
- Web browser and its version: Firefox nightly
- Operating system and its version: linux debian

Steps to reproduce the problem:
1. Open the pdf  
2. Click on the yellow area

What is the expected behavior? (add screenshot)
The text layout should be RTL.

What went wrong? (add screenshot)
The text layout is LTR.

It works correctly in evince and in acrobat.
I added a `dir="rtl"` on the `p` element in using devtools and the rendering is the same as in acrobat.

expect(annotation.hasFlag(AnnotationFlag.READONLY)).toEqual(false
      expect(annotation.hasFlag(AnnotationFlag.HIDDEN)).toEqual(false
    }
    it("should be viewable and not printable by default", function () {
      const annotation = new Annotation({ dict, ref }
      expect(annotation.viewable).toEqual(true
      expect(annotation.printable).toEqual(false
    }
    it("should set and get a valid rectangle", function () {
      const annotation = new Annotation({ dict, ref }
      annotation.setRectangle([117, 694, 164.298, 720]
      expect(annotation.rectangle).toEqual([117, 694, 164.298, 720]
    }
    it("should not set and get an invalid rectangle", function () {
      const annotation = new Annotation({ dict, ref }
      annotation.setRectangle([117, 694, 164.298]
      expect(annotation.rectangle).toEqual([0, 0, 0, 0]
    }
    it("should reject a color if it is not an array", function () {
      const annotation = new Annotation({ dict, ref }
      annotation.setColor("red"
      expect(annotation.color).toEqual(new Uint8ClampedArray([0, 0, 0])
    }
    it("should set and get a transparent color", function () {
      const annotation = new Annotation({ dict, ref }
      annotation.setColor([]
      expect(annotation.color).toEqual(null
    }
    it("should set and get a grayscale color", function () {
      const annotation = new Annotation({ dict, ref }