Bug 162998 - A11Y sidebar: no warning if para style is overridden by char style
Summary: A11Y sidebar: no warning if para style is overridden by char style
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.0.4 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Accessibility-Check
  Show dependency treegraph
 
Reported: 2024-09-16 19:33 UTC by Gabor Kelemen (allotropia)
Modified: 2025-06-18 09:48 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Writer with character style applied (12.38 KB, application/vnd.oasis.opendocument.text)
2024-09-16 19:33 UTC, Gabor Kelemen (allotropia)
Details
The document with the Accessibility sidebar open (83.02 KB, image/png)
2024-09-16 19:34 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2024-09-16 19:33:40 UTC
Created attachment 196497 [details]
Example file from Writer with character style applied

Attached document contains a Heading 1 style paragraph with one word overridden by a character style.
The Accessibility sidebar does not warn about this situation. If the same formatting would happen with direct formatting, there is a warning.

1. Open attached document
2. Open the Accessibility sidebar
-> No warning, despite the consectetur word having a distinct formatting due to the PLACEHOLDER character style.

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e6e7b8498aba69af8eee8edd1d3a1fb17c36836a
CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: en-US
Calc: threaded

and back to 7.2
Comment 1 Gabor Kelemen (allotropia) 2024-09-16 19:34:04 UTC
Created attachment 196498 [details]
The document with the Accessibility sidebar open
Comment 2 Dieter 2024-10-25 13:04:36 UTC
I confirm the observed behaviour. I'm not familiar with accessibility check, but when I look at the options I can only see "Check if the document contains direct formatting". So do you expect a new option "Check if the document contains character styles"?
Comment 3 BogdanB 2024-12-28 20:38:59 UTC
I remove all formatting from the line (paragraph and character), and I applied Heading 1 to all line, and for one word I applied italic (direct formatting). I have no accessibility warning for this case. Also for your case...
Comment 4 Gabor Kelemen (allotropia) 2025-06-18 09:44:59 UTC
The main issue with using direct formatting - and as another way of reaching the same look - char style on top of para style is this:

https://www.w3.org/WAI/WCAG21/Techniques/general/G117

So here they suggest that if text formatting conveys some extra meaning, then this meaning is also explicitly spelled out.

Applying char style over para style is another way of using text formatting to imply extra meaning. This may or may not be spelled out explicitly, so adding a warning about these would make sense.
Comment 5 Gabor Kelemen (allotropia) 2025-06-18 09:48:58 UTC
(In reply to BogdanB from comment #3)
> I remove all formatting from the line (paragraph and character), and I
> applied Heading 1 to all line, and for one word I applied italic (direct
> formatting). I have no accessibility warning for this case. Also for your
> case...

I can not reproduce this. Moving the cursor to the next empty paragraph makes the warning appear in the sidebar.