Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
lukaszgo1
left a comment
There was a problem hiding this comment.
This fix is incomplete as it affects only UIA controls. The same should be done for all other places where NVDA can report font size.
michaelDCurran
left a comment
There was a problem hiding this comment.
Okay. If I ignore the line ending changes, everything looks good to me.
See test results for failed build of commit c6eb17399b |
|
Regarding tests, all the modified code paths are not tested. It would be interesting to test them (and indicate it) or at least indicate that they are not tested (and why). Exemples of untested code paths:
|
See test results for failed build of commit 930ca8d353 |
|
Thanks @CyrilleB79 - I've fixed this up now. The case for browsers is quite complex, a start for covering each font-size case for browser has been added to this PR. |
feerrenrut
left a comment
There was a problem hiding this comment.
Generally looks good (assuming actions from your self review are committed).
You might consider adding an integration test with chrome to ensure that the font-size is reported correctly end-to-end.
|
@seanbudd, @lukaszgo1 I feel a bit picky with such remark but prefer to have things explicit. Technically, do we consider that removing imports (or converting star imports in explicit imports) are an API change? Thanks for clarification. |
Unused imports were removed in various PR's for non compatibility breaking releases, so IMO these are not a part of public API. Removing star imports is just another case of removing unused imports, and should not be treated differently. For one example where similar cleanup was performed in non compat breaking release see #12924. |
See test results for failed build of commit 497665179d |
Link to issue number:
Fixes #13573
Summary of the issue:
"pt" when reporting font size measurements is not translatable.
Font size measurements are reported inconsistently, for example in excel and PowerPoint are reported as "11.0" instead of "11 pt".
Description of how this pull request fixes the issue:
Makes the font size measurement "pt" translatable across APIs.
Browsers provide "font-size" attribute directly as "12pt|px|em|%|rem|ex" or "large", "small", etc.
This requires a more strategic approach for catching each font-size case and replacing it with a translated string.
Documentation has been added for this.
https://developer.mozilla.org/en-US/docs/Web/CSS/font-size
Testing strategy:
Unit testing has been added to test the more complicated parsing of the browser font-size attribute.
Manual testing
/de/nvda.po.Known issues with pull request:
None
Change log entries:
Changes
- Font size measurements are now translatable in NVDA. (#13573)Code Review Checklist: