-
Type: Bug
-
Status: Applied
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: ODF 1.2 CD 05
-
Fix Version/s: ODF 1.2 CD 06
-
Component/s: Part 3 (Schema) [1.2: 1], Public Review, Styles
-
Labels:None
-
Resolution:
As posted by Jos on mailing list:
Today I was reading paragraph 16.2 of OpenDocument-v1.2-cd05-part1-editor-
revision_01.odt.
I tried to deduce how to resolve certain properties for certain ODF fragments.
<text text:style-name='A'>
<text:span text:style-name='B'>
<text:span text:style-name='C'>
Hello
</text:span>
</text:span>
</text>
Assume that styles A, B and C have no parent styles and both A and B determine
fo:font-size at 10 and 20 respectively. If I follow the instructions in 16.2,
I would conclude that 'Hello' should be shown with font-size 10, since the
instructions there say that if the style on the element does not define a
property, next one should look at the style for the containing paragraph,
thereby skipping style 'B'. That seems wrong to me.
This is the relevant instruction:
"For styles where the style:family attribute 19.478 has the value text,
applied to an descendant elements of a paragraph which defines character
content 6.1.1, the paragraph style applied to the paragraph containing those
elements is searched for the formatting property."