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(data.radioButton).toEqual(true
      expect(data.fieldValue).toEqual(null
      expect(data.buttonValue).toEqual("2"
    }
    it("should render radio buttons for printing", async function () {
      const appearanceStatesDict = new Dict(
      const normalAppearanceDict = new Dict(
      const checkedAppearanceDict = new Dict(
      const uncheckedAppearanceDict = new Dict(
      const checkedStream = new StringStream("0.1 0.2 0.3 rg"
      checkedStream.dict = checkedAppearanceDict;
      const uncheckedStream = new StringStream("0.3 0.2 0.1 rg"
      uncheckedStream.dict = uncheckedAppearanceDict;
      checkedAppearanceDict.set("BBox", [0, 0, 8, 8]
      checkedAppearanceDict.set("FormType", 1
      checkedAppearanceDict.set("Matrix", [1, 0, 0, 1, 0, 0]
      normalAppearanceDict.set("Checked", checkedStream
      normalAppearanceDict.set("Off", uncheckedStream
      appearanceStatesDict.set("N", normalAppearanceDict
      buttonWidgetDict.set("Ff", AnnotationFieldFlag.RADIO
      buttonWidgetDict.set("AP", appearanceStatesDict
      const buttonWidgetRef = Ref.get(124, 0
      const xref = new XRefMock([
        { ref: buttonWidgetRef, data: buttonWidgetDict },
      ]
      const task = new WorkerTask("test print"
      const annotation = await AnnotationFactory.create(
        xref,
        buttonWidgetRef,
        pdfManagerMock,