Do not report "baseline" on formatting information request (PR #11897)
Fixes #11815
Fixes #11078.
Summary:
When fetching formatting information with NVDA+F (once or twice) in a Firefox page, 'baseline' was reported.
Only 'subscript' or 'superscript' is expected to be reported, not 'baseline' since 'baseline' is the default text position.
When the 'Report superscript and subscript' option is checked, navigating in a Firefox page cause spurious reporting of 'baseline'. This is due to transitions between elements having no formatting information such as button or graphics and baseline text.
Description of change:
All objects generating the textInfo format field provide only the introduced enum standard values for 'text-position' field:
- superscript
- subscript
- baseline
- unspecified
Unspecified is used in the following cases:
- The API does not provide formatting info (e.g. buttons in Firefox)
- Mixed text-position information, e.g. an Excel cell containing baseline and superscript.