<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Character style percentage font sizes are not updated automatically"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=109029">109029</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Character style percentage font sizes are not updated automatically
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>5.3.3.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Writer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>khanson679@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Description:
With paragraph styles it is possible to create a nested hierarchy of styles
with percentage font sizes, where the percentage is calculated based on the
parent style. These values are automatically updated when the parent value
changes.
Character styles ought to work the same way, but they don't. <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - Character styles not working against the underlying paragraph style"
href="show_bug.cgi?id=108498">Bug 108498</a>,
<a href="show_bug.cgi?id=109029#c4">Comment 4</a> states:
<span class="quote">> It should be based on its parent style.
>
> It is in ODF 20.183fo:font-size
> "In contrast to XSL, percentage values can be used within common styles only
> and are based on the font height of the parent style rather than to the font
> height of the attributes neighborhood. Absolute font heights and relative
> font heights are not supported."
>
> So with the current fo:font-size it is not possible to base the character
> font-size on the paragraph in which the character is, which gets this style
> applied.
>
> The percent values is written to file and the percent value is calculated,
> when the style is defined in the beginning. But the text in the document is
> not updated, when the font-size of the parent character style is changed.
>
> If you revisit the character Font dialog page and click on OK without any
> changes, then the text in the document is updated.</span >
There are several problems with this. The issue in this bug is the fact that
child styles do not update to reflect changes in the parent. (The fact that the
values displayed by the interface are misleading given the actual behavior, and
the fact that the advice in the last paragraph fails in certain circumstances
will be addressed separately, if need be.)
The fact that percentage font sizes in character styles do not work like they
do in paragraph styles is confusing to the user.
Also, the need to have to manually update all child styles almost completely
defeats the purpose of having percentage font sizes at all. I can't see
anything in the ODF spec that implies that there should be a difference, either
in the quote above or elsewhere (I looked as best I could).
Can we get the character style behavior changed to match paragraph styles? If
so, the other issues I mentioned will be taken care of as well.
Steps to Reproduce:
1. Create a character style with a parent and a percentage font size.
2. Change the parent font size
Actual Results:
The child style font size does not change
Expected Results:
The child style font size should change
Reproducible: Always
User Profile Reset:
Additional Info:
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101
Firefox/54.0</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>