Bug 159787 - False alert regarding accessibility and contrast with large font size
Summary: False alert regarding accessibility and contrast with large font size
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.4.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: accessibility
Depends on:
Blocks:
 
Reported: 2024-02-20 08:03 UTC by Ulrich Windl
Modified: 2024-04-04 22:36 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example showing a date field and a version field in a footer line (1.63 KB, image/png)
2024-02-20 08:03 UTC, Ulrich Windl
Details
Sample Document (three X) (11.34 KB, application/vnd.oasis.opendocument.text)
2024-04-04 06:37 UTC, Ulrich Windl
Details
Emissive contrast measurement "black against white" (26.80 KB, image/jpeg)
2024-04-04 22:32 UTC, Ulrich Windl
Details
Emissive contrast measurement "cyan against white" (27.68 KB, image/jpeg)
2024-04-04 22:33 UTC, Ulrich Windl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Windl 2024-02-20 08:03:34 UTC
Created attachment 192653 [details]
Example showing a date field and a version field in a footer line

When checking accessibility in Writer, I got a "low contrast" warning where the display of fields (variables) most likely caused the warning. As those won't be visible in exported documents (I guess that is what accessibility is about), I consider that to be a "false alert".
Comment 1 Buovjaga 2024-03-05 18:50:43 UTC
I tried to reproduce, but could not. Please attach an example document.
Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the document.

Arch Linux 64-bit, X11
Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 020828abee9b96993434a1c85f8637e2bc00d88e
CPU threads: 8; OS: Linux 6.7; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 5 March 2024
Comment 2 Ulrich Windl 2024-04-04 06:37:48 UTC
Created attachment 193478 [details]
Sample Document (three X)

It seems the problem is not highlighting fields or not, but the contrast of the text color is considered to be too low against the white background.
I don't have my color meter here, but still I think that's false (or overly sensitive) alert.
According to GIMP's CIE LCh color model, the lightness proportion is is 51.7:100 (text:background). In GIMP's HSV model it's 66.7:100.
Comment 3 Buovjaga 2024-04-04 11:38:06 UTC
Gábor: what do you think?

Checking #0a87aa vs white in https://www.achecks.org/wcag-2-accessible-colour-contrast-checker/ gives failure for 14px text, but succeeds already at 18px.

Seems like the checker should take font size into account?
Comment 4 Ulrich Windl 2024-04-04 22:32:26 UTC
Created attachment 193498 [details]
Emissive contrast measurement "black against white"

I took the color meter and measured my wide-gamut screen in text mode (lower contrast, "eye friendly"), and here is what I measured:
"black against white" has contrast 1:34
"cyan against white has" contrast 1:5
Comment 5 Ulrich Windl 2024-04-04 22:33:03 UTC
Created attachment 193499 [details]
Emissive contrast measurement "cyan against white"
Comment 6 Ulrich Windl 2024-04-04 22:36:19 UTC
(In reply to Buovjaga from comment #3)
> Seems like the checker should take font size into account?

In any case a better explanation (reason of complaint, suggested fix) would be helpful.