AvaloniaUI/Avalonia

[Text] Nested Span elements do not inherit their text properties

Closed this issue · 0 comments

Describe the bug

Currently, nested Span elements do not inherit text properties from parent spans

To Reproduce

The following XAML demonstrates the issue:

  <TextBlock>
    <Italic>
      <Run>Italic run text</Run>
      <Bold>Italic bold</Bold>
      <Run>After span</Run>
    </Italic>
  </TextBlock>
Image

Expected behavior

Elements that are enclosed by a span should inherit all text properties from their parent if they don't override specific properties on their own.