https://bugs.documentfoundation.org/show_bug.cgi?id=174163

            Bug ID: 174163
           Summary: Stroke Weight in Spell Check too thin to see reliably
                    (Dark Mode)
           Product: LibreOffice
           Version: 26.8.1.1 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
The wave line used to mark spelling errors is drawn with a
stroke of roughly 1-2 px regardless of document zoom, display scaling or
platform. At that width, anti-aliasing blends most of the line into the
background, so it renders much darker than its configured color and is
easy to miss. My focus here is on dark document backgrounds. 
This is an accessibility problem: typos go unnoticed, and the obvious
workaround, zooming, does not thicken the stroke.

This is separate from the color change in bug 173747. This is focused on line
thickness as a likely root cause. The same issue was reported on Windows in bug
171234 (closed as a duplicate of 173747).

Testing method:
The following is Claude's summary of what I put together. Otherwise, I did this
manually and fed Opus 5.5 the screenshots.

Same test document opened in each configuration, white 12pt text on a
#1C1C1C page background, 200% zoom. Screenshots taken at native
resolution and measured pixel by pixel. "Peak contrast" = contrast ratio
of the brightest 10% of line pixels against the background, i.e. what is
actually displayed, not the configured colour.

Results (3840x2160 display; see attachment):

Windows 11, 150% scaling:
  LibreOffice 26.8.1.1, default colour     1-2 px   peak 2.3:1
  LibreOffice 26.8.1.1, #EB0000            1-2 px   peak 2.5:1
  LibreOfficeDev 27.2 nightly, default     1-2 px   peak 2.4:1
  Microsoft Word, default                  2-3 px   peak 4.6:1

Linux (KDE Plasma), 145% scaling, native Wayland, gtk3:
  LibreOffice 26.8.1.1 (Flatpak), default  3-5 px*  peak 1.8:1
  LibreOffice 26.8.1.1 (Flatpak), #EB0000  3-5 px*  peak 2.0:1
  LibreOfficeDev 27.2 nightly, default     3-5 px*  peak 2.1:1

Linux (KDE Plasma), 145% scaling, XWayland:
  LibreOffice 26.8.1.1 (Flatpak, gtk3)     2-3 px   peak 2.1-2.4:1
  LibreOfficeDev 27.2 nightly (kf5)        2-3 px   peak 2.6:1

Other editors, same Linux setup:
  Collabora Office Desktop, default        2-3 px   peak 2.7:1
  OnlyOffice, default (straight line)      2 px     peak 3.1:1

* Wider but faint; consistent with gtk3 rendering at 2x and the
  compositor downscaling to 145%. Observation only, not a diagnosis.

Key findings:
1. On the same Windows machine, document and zoom, Word's line is about
   twice as thick and reaches ~4.6:1; LibreOffice's peaks at ~2.5:1.
2. No LibreOffice configuration tested renders above ~2.7:1, regardless
   of configured colour. #EB0000 calculates to 4.53:1 on black, but at
   this stroke width it never displays above ~2.5:1.
3. Zoom does not increase stroke weight, so zooming is not a workaround.



Steps to Reproduce:
1. Enable automatic spell checking
2. Type misspelled words; set a dark document background
3. Zoom to 200%+ and compare the underline to other editors

Actual Results:
Wave line stays ~1-2 px; rendered contrast far below configured contrast.

Expected Results:
A wave line that remains clearly visible: a heavier stroke, or one that
scales with zoom and display scaling.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
See bug 173747 for prior discussion of color contrast.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to