Bug 101783 - Percent-value for font size in character style works wrongly.
Summary: Percent-value for font size in character style works wrongly.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: x86 (IA32) All
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: Writer-Styles-Character Font-Size 140384
  Show dependency treegraph
Reported: 2016-08-29 19:10 UTC by Regina Henschel
Modified: 2024-04-30 11:13 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:

Example with custom character size with parent-child relation and percent value (11.45 KB, application/vnd.oasis.opendocument.text)
2016-08-29 19:10 UTC, Regina Henschel

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2016-08-29 19:10:48 UTC
Created attachment 127068 [details]
Example with custom character size with parent-child relation and percent value

Open attached document. Change the font size of the style "Basis" to a different value. This changes the size of the word "Basis", which has this style applied.

The word "size" has the style "Basis200%" applied. This style is a child of style "Basis" and its font size is set to the value 200%.

Expected behavior: The size of the word "size" follows the changes in the parent style "Basis".
Observed behavior: The size does not change.

Save and reload the document. Now the word "size" get the totally wrong size value 24pt.

Open the style "Basis200%" on tab "Font" for Modify. Click on OK without changing anything. Now the size of the word "size" is set correctly to double of what you have set in style "Basis".

If you look in the standards for the correct behavior, then notice, that in section "20.183 fo:font-size" it is explicitly said, that for percent the parent style is used as reference.
Comment 1 Octavio Alvarez 2016-09-18 08:21:48 UTC
Confirmed on Debian/Sid.

Build ID: 1:5.1.3~rc1-1
CPU Threads: 4; OS Version: Linux 4.5; UI Render: default; 
Locale: en-US (en_US.utf8)

Font color, for example, does propagate to children when modified. Font size doesn't. Editing the child by hand and changing to a different value en then to 200% recalculates properly.
Comment 2 Buovjaga 2016-10-08 19:13:04 UTC
NEW per comment 1.
Comment 3 QA Administrators 2017-10-23 14:09:02 UTC Comment hidden (obsolete)
Comment 4 Regina Henschel 2018-11-06 14:09:22 UTC
The error still exists in Version: (x64)
Build ID: f825e6d4082c0d0beb1c95b881f6a2ee9bfc9161
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-11-05_00:20:26
Locale: de-DE (en_US); Calc: CL
Comment 5 QA Administrators 2019-11-07 03:33:51 UTC Comment hidden (obsolete)
Comment 6 Hagar Delest 2022-04-30 09:33:21 UTC
The bug is still there with LO portable, see: https://forum.openoffice.org/en/forum/viewtopic.php?f=7&t=107611
Comment 7 QA Administrators 2024-04-30 03:14:14 UTC Comment hidden (obsolete)
Comment 8 Regina Henschel 2024-04-30 11:13:15 UTC
The error still exists in Version: (X86_64) / LibreOffice Community
Build ID: 695e8742da850bbb15c2e6d2b5d4c99a0daf4925
CPU threads: 32; OS: Windows 10.0 Build 22631; UI render: default; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: threaded