Bug 126513 - BackgroundParaOverDrawings missing in compatibility settings
Summary: BackgroundParaOverDrawings missing in compatibility settings
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
Keywords: difficultyMedium, easyHack, skillCpp
Depends on:
Blocks: Options-Dialog-Writer
  Show dependency treegraph
Reported: 2019-07-23 08:00 UTC by canned
Modified: 2024-02-06 22:07 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:

Example (9.53 KB, application/vnd.oasis.opendocument.text)
2019-07-23 08:00 UTC, canned
PDF-Example (7.33 KB, application/pdf)
2019-07-23 08:01 UTC, canned
Example of paragraph background needed at last (131.88 KB, image/png)
2021-06-14 07:25 UTC, Heiko Tietze

Note You need to log in before you can comment on or make changes to this bug.
Description canned 2019-07-23 08:00:43 UTC
Created attachment 152950 [details]

add a background color and a frame to a header and place a colored form element in the page background -> where the two elements overlap, the header's frame is correctly over the form element, but the background color of the header ist covered by the form element (see attached example).
Comment 1 canned 2019-07-23 08:01:45 UTC
Created attachment 152951 [details]
Comment 2 Dieter 2019-07-24 07:32:12 UTC Comment hidden (obsolete)
Comment 3 Dieter 2019-07-24 07:34:38 UTC Comment hidden (obsolete)
Comment 4 Dieter 2019-07-26 05:22:25 UTC
I confirm it with

Version: (x64)
Build ID: 8f98a7c4e5b1f0b249c026577805a378b8a533d5
CPU threads: 4; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-07-23_00:30:19
Locale: de-DE (de_DE); UI-Language: en-US
Calc: threaded

Just for clarification: There is no header in your document, but a heading paragraph with a colored area => Ichanged bug summary to make it more clear.
Comment 5 Dieter 2021-06-12 04:54:30 UTC
Still present in

Version: (x64) / LibreOffice Community
Build ID: a529a4fab45b75fefc5b6226684193eb000654f6
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

Steps to reproduce
1. Open a new document
3. Write some text
2. Insert a shape and drag it over the text
3. Choose "In Background" for wrap settings => shape is now in background of the text => O. K.
4. Add a background color to the paragraph

Actual result: Background color of the paragraph is in the background of the shape

Expected result: Should be a possibility to make paragraph background visible

Additional information: If you add a border to the paragraph, border is visible

Not sure for 100% about the expected result => cc: Design Team

Bug 67272 describes the same behaviour with images in background.
Comment 6 Heiko Tietze 2021-06-14 07:25:32 UTC
Created attachment 172855 [details]
Example of paragraph background needed at last

Was thinking that we need the background (color) to be the true background. Object become hidden otherwise.

But the example is a clear situation where the shape is expected to be behind the paragraph. My take is just WF.

Solution/workaround is to either use a correct page style (with image or pattern as background) or to highlight the paragraph rather than using it's background color.
Comment 7 Heiko Tietze 2021-06-14 07:25:51 UTC
Mike, what do you think?
Comment 8 Mike Kaganski 2021-06-14 07:36:08 UTC
(In reply to Dieter from comment #5)
> Additional information: If you add a border to the paragraph, border is
> visible

This is obviously unexpected. I am unsure what should be the expected order, but the paragraph borders should definitely be on the same "layer" with its background.

So what should be the Z-order of various things? Maybe Regina has an idea?
Comment 9 Regina Henschel 2021-06-14 17:38:39 UTC
ODF has only "frame content is displayed behind a text" and "frame content is displayed in front of a text" (section 20.351 style:run-through, part3 OSD1.3). It does not explicitly state, whether the paragraph background color belongs to the text an covers the object.

All of Word, SoftMaker, and Google Docs behave the same. They put a "in Background" object behind the paragraph background-color.

LibreOffice has a setting "BackgroundParaOverDrawings" in ooo:configuration-settings in settings.xml to use one or the other position of the object. But that option is not available in the expert configuration and not in Tools > Options>..>Compatibility. The setting should at least be available in the "Expert configuration" in Tools > Options > General > Advanced.
Comment 10 Mike Kaganski 2021-06-15 10:17:34 UTC
(In reply to Regina Henschel from comment #9)
> LibreOffice has a setting "BackgroundParaOverDrawings" in
> ooo:configuration-settings in settings.xml to use one or the other position
> of the object. But that option is not available ...
> in Tools > Options>..>Compatibility.

See also bug 76005. All compatibility options must be available (but not in expert config, since those settings are not LibreOffice registry settings).
Comment 11 Mike Kaganski 2024-01-27 05:12:52 UTC
A commit that adds adds another compatibility option to the dialog:
Comment 12 Aron Budea 2024-02-05 05:53:10 UTC
For reference, the flag was introduced in the following commit:
author		Miklos Vajna <vmiklos@suse.cz>	2012-09-12 09:59:27 +0200
committer	Miklos Vajna <vmiklos@suse.cz>	2012-09-12 10:03:18 +0200

n#778133 sw: add BackgroundParaOverDrawings compat flag