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.

const xref = new XRefMock([
        { ref: buttonWidgetRef, data: buttonWidgetDict },
      ]
      const { data } = await AnnotationFactory.create(
        xref,
        buttonWidgetRef,
        pdfManagerMock,
        idFactoryMock
      
      expect(data.annotationType).toEqual(AnnotationType.WIDGET
      expect(data.checkBox).toEqual(false
      expect(data.radioButton).toEqual(true
      expect(data.fieldValue).toEqual("1"
      expect(data.buttonValue).toEqual("2"
    }
    it("should handle radio buttons with a field value that's not an ASCII string", async function () {
      const parentDict = new Dict(
      parentDict.set("V", Name.get("\x91I=\x91\xf0\x93\xe0\x97e3")
      const normalAppearanceStateDict = new Dict(
      normalAppearanceStateDict.set("\x91I=\x91\xf0\x93\xe0\x97e3", null
      const appearanceStatesDict = new Dict(
      appearanceStatesDict.set("N", normalAppearanceStateDict
      buttonWidgetDict.set("Ff", AnnotationFieldFlag.RADIO
      buttonWidgetDict.set("Parent", parentDict
      buttonWidgetDict.set("AP", appearanceStatesDict
      const buttonWidgetRef = Ref.get(124, 0
      const xref = new XRefMock([
        { ref: buttonWidgetRef, data: buttonWidgetDict },
      ]
      const { data } = await AnnotationFactory.create(