Bug 39756 - Paragraph background color may extend too far FORMATTING
Summary: Paragraph background color may extend too far FORMATTING
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.3.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ODF-import Writer-Styles-Paragraph
  Show dependency treegraph
 
Reported: 2011-08-02 03:15 UTC by HansPL
Modified: 2023-12-31 14:13 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
A simple test case. (13.61 KB, application/vnd.oasis.opendocument.text)
2011-08-02 03:15 UTC, HansPL
Details
Screenshot of test case (36.28 KB, image/png)
2011-08-02 03:16 UTC, HansPL
Details

Note You need to log in before you can comment on or make changes to this bug.
Description HansPL 2011-08-02 03:15:41 UTC
Created attachment 49819 [details]
A simple test case.

Another old inheritance from OOo https://openoffice.org/bugzilla/show_bug.cgi?id=115997 ...

In Writer,  when I use paragraph background color AND some spacing below
paragraph AND a wide border,  the background color extends too far above the
paragraph and may even overlap the preceding paragraph.  

See attached document backgroundcolor.odt and screenshot backgroundcolor.png .

Observed since many OOo versions in Win XP and Linux.
Comment 1 HansPL 2011-08-02 03:16:23 UTC
Created attachment 49820 [details]
Screenshot of test case
Comment 2 Jeffrey 2011-08-02 07:14:19 UTC
Confirmed for LibreOffice 3.4  340m1(Build:103) on OpenSuse Linux.

To reproduce the bug for yourself, download the attachment and add background colors to some of the already displayed paragraphs.

1. View -> Tools-> Formatting (Turn it on)
2. Highlight bottom paragraph in third set, apply color (eg blue). No problem yet.
3. Highlight top paragraph in third set, apply color (eg green)
4. Blue Highlighted paragraph leaks into the second

Thanks for the screenshots and document.
Comment 3 Björn Michaelsen 2011-12-23 12:27:11 UTC Comment hidden (obsolete)
Comment 4 sasha.libreoffice 2012-01-30 04:30:11 UTC
reproduced in LibO 3.6.0 master on Fedora  64 bit
to reproduce, open first attachment, scroll text to most up, then to most bottom
problem appears if in Paragraph property:
 spacing "above paragraph" < "below paragraph"
Comment 5 A (Andy) 2013-05-02 20:10:14 UTC
reproducible with LO 4.0.2.2 (Win7 Home, 64bit)
Comment 6 HansPL 2013-10-07 12:20:39 UTC
Still defunct in LO 4.1.2.3 !
Comment 7 HansPL 2014-09-16 07:24:38 UTC
Three years now and no response…?  Like for many other annoying small bugs.  

How about a really resolute bug fixing release?  


Hans
Comment 8 4103 2015-03-04 08:38:26 UTC
Bug is Back since 4.4
Comment 9 Jean-Baptiste Faure 2015-03-11 21:01:36 UTC
Please, do not change the version number, it shows the oldest version in which the bug has been found.

Best regards. JBF
Comment 10 tommy27 2016-04-16 07:27:20 UTC Comment hidden (obsolete)
Comment 11 HansPL 2016-05-17 11:34:05 UTC
Still present in 5.1.2.2.0+ / Linux!  

I would really wish that the LO team would spend time on fixing all those annoying year-old bugs instead of just ignoring them and unnecessarily adding gimmicks or changing the UI…  

It's five years now and this bug still defaces every single Operating Instructions we issue!  

If you really want LO not to be laughed at by all those MS Office users, please do give care and attention to the details.
Comment 12 QA Administrators 2017-05-22 13:40:44 UTC Comment hidden (obsolete)
Comment 13 Thomas Lendo 2017-05-26 10:43:32 UTC
Regina, OpenOffice has marked the same issue as duplicate of your CSS box model issue (https://bz.apache.org/ooo/show_bug.cgi?id=125316). Was that correct? If so then we can also mark this issue as duplicate of bug 106021.
Comment 14 Regina Henschel 2017-05-26 15:48:13 UTC
The problem here is not the box model directly. There exist two problems:

(1) To get the border around two adjacent paragraphs without a border line between the paragraph, the attribute style:join-border (20.292 in ODF spec part 1) is used. It has the text "The style:join-border property specifies whether a border for one paragraph is to be extended around the following paragraph." But is does not explain, how this has to be done. Especially it does not say, how to handle the margin-bottom of the first and margin-top of the second paragraph. This attribute is not based on any XSL-FO or CSS property, in contrast to the margin/border/padding properties.

(2) If two paragraphs of the same style follow directly, then the background color is extended into the margins between them. That is, what user want. But I doubt, that this is correct according to specification. It might be, that the specification has to be adapted. If the styles are different, then the transparent margin is kept. Word has a total different concept. 

It is not clear, what the correct/best solution is. Only the current rendering is surely wrong.
Comment 15 QA Administrators 2018-05-27 02:32:06 UTC Comment hidden (obsolete)
Comment 16 Thomas Lendo 2018-10-17 12:54:00 UTC
But still occurs in

Version: 6.2.0.0.alpha0+ (x64)
Build ID: 425af6845ebe066c950b0b63f50563e067485f3e
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-10-09_23:30:22
Locale: de-AT (de_AT); Calc: CL
Comment 17 QA Administrators 2023-12-12 03:13:54 UTC Comment hidden (obsolete)
Comment 18 HansPL 2023-12-31 14:13:01 UTC
Still unchanged present in LO 7.4.7.2 (Linux Mint Debian Edition).  After >10 years…