Bug 164247 - Writer Accessibility check requires too high contrast for large text
Summary: Writer Accessibility check requires too high contrast for large text
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Michael Weghorn (away)
URL:
Whiteboard: target:25.8.0 target:25.2.0.0.beta2 t...
Keywords: accessibility
Depends on:
Blocks: Accessibility-Check
  Show dependency treegraph
 
Reported: 2024-12-09 09:11 UTC by Michael Weghorn (away)
Modified: 2024-12-20 19:45 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Sample doc (13.24 KB, application/vnd.oasis.opendocument.text)
2024-12-09 09:11 UTC, Michael Weghorn (away)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Weghorn (away) 2024-12-09 09:11:28 UTC
Created attachment 198016 [details]
Sample doc

Originally reported on the accessibility mailing list [1]:

>Hi, with build:
>https://git.libreoffice.org/core/+log/65412f067af443213e726c93f137ccc85c9a1e06
>
>I see that colour contrast checker don't apply correctly WCAG 1.4.3. If i
>set a color with large-scale text (14pt bold and more or 18pt and more
>Normal) contrast ratio is 3:1 instead of 4,5:1 applied.

Steps to reproduce:

1) open attached sample doc in Writer
2) check the accessibility check sidebar

Actual results:
Errors about too low contrast are shown.

Expected result:
No errors should be shown, because the contrast ratio is larger than 3.0, which is sufficient for large text according to the WCAG spec:
https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html


[1] https://listarchives.libreoffice.org/global/accessibility/msg01204.html
Comment 1 Michael Weghorn (away) 2024-12-09 09:14:56 UTC
Self-confirming as this was originally reported by another user on the a11y mailing list.

Suggested fix: https://gerrit.libreoffice.org/c/core/+/178127
Comment 2 Commit Notification 2024-12-09 17:22:03 UTC
Michael Weghorn committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/a4b03fce93fce7672be40b57d30797ac36ca67c9

tdf#164247 sw a11y check: Adhere to WCAG contrast threshold for large text

It will be available in 25.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 3 Commit Notification 2024-12-10 06:20:21 UTC
Michael Weghorn committed a patch related to this issue.
It has been pushed to "libreoffice-25-2":

https://git.libreoffice.org/core/commit/7349fc1e469f3302e1bff38c8eb078e6f4712935

tdf#164247 sw a11y check: Adhere to WCAG contrast threshold for large text

It will be available in 25.2.0.0.beta2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Commit Notification 2024-12-12 08:52:38 UTC
Michael Weghorn committed a patch related to this issue.
It has been pushed to "libreoffice-24-8":

https://git.libreoffice.org/core/commit/99c04ba30e5dbc8bdc7a3e920536b0c432c39797

tdf#164247 sw a11y check: Adhere to WCAG contrast threshold for large text

It will be available in 24.8.5.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 5 Stéphane Guillou (stragu) 2024-12-20 19:45:52 UTC
Fix verified in own build:

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 496c409841d9ee71964af8a8afdc121282e69a63
CPU threads: 8; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

Thanks Michael!