Uploaded image for project: 'OASIS Open Document Format for Office Applications (OpenDocument) TC'
  1. OASIS Open Document Format for Office Applications (OpenDocument) TC
  2. OFFICE-3004

16.43 chart styles - Chart styles follow two inheritance models?

    XMLWordPrintable

    Details

    • 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: General
    • Labels:
      None
    • Proposal:
      Hide

      Starting with the second paragraph:

      There are two style inheritance models at work with chart styles. The first model, is standard style inheritance as described in 16.2 <style:style>. The second model is inheritance between elements representing parts of a chart.

      If an attribute is not specified with a chart style applied to a <chart:data-point> element, the specification of that attribute on its parent <chart:series> element is used. If the attribute is not specified on the parent <chart:series> element, then the specification of that attribute on its ancestor <chart:plot-area> element is used.

      (While we are here).

      Chart styles may define paragraph and text properties. These are applied to paragraphs contained in chart elements unless they are overwritten by paragraph styles that are specified by the paragraph elements themselves.

      (deleting the noise first clause)

      Show
      Starting with the second paragraph: There are two style inheritance models at work with chart styles. The first model, is standard style inheritance as described in 16.2 <style:style>. The second model is inheritance between elements representing parts of a chart. If an attribute is not specified with a chart style applied to a <chart:data-point> element, the specification of that attribute on its parent <chart:series> element is used. If the attribute is not specified on the parent <chart:series> element, then the specification of that attribute on its ancestor <chart:plot-area> element is used. (While we are here). Chart styles may define paragraph and text properties. These are applied to paragraphs contained in chart elements unless they are overwritten by paragraph styles that are specified by the paragraph elements themselves. (deleting the noise first clause)
    • Resolution:
      Hide

      Starting with the second paragraph:

      There are two style inheritance models at work with chart styles. The first model, is standard style inheritance as described in 16.2 <style:style>. The second model is inheritance between elements representing parts of a chart.

      If an attribute is not specified with a chart style applied to a <chart:data-point> element, the specification of that attribute on its parent <chart:series> element is used. If the attribute is not specified on the parent <chart:series> element, then the specification of that attribute on its ancestor <chart:plot-area> element is used.

      (While we are here).

      Chart styles may define paragraph and text properties. These are applied to paragraphs contained in chart elements unless they are overwritten by paragraph styles that are specified by the paragraph elements themselves.

      (deleting the noise first clause)

      Show
      Starting with the second paragraph: There are two style inheritance models at work with chart styles. The first model, is standard style inheritance as described in 16.2 <style:style>. The second model is inheritance between elements representing parts of a chart. If an attribute is not specified with a chart style applied to a <chart:data-point> element, the specification of that attribute on its parent <chart:series> element is used. If the attribute is not specified on the parent <chart:series> element, then the specification of that attribute on its ancestor <chart:plot-area> element is used. (While we are here). Chart styles may define paragraph and text properties. These are applied to paragraphs contained in chart elements unless they are overwritten by paragraph styles that are specified by the paragraph elements themselves. (deleting the noise first clause)

      Description

      After fixing the general language on inheritance for <style:style> the next use of inheritance was 16.43.

      What is described in the second paragraph is a different inheritance model than previously described for styles. Here, a style is inherited from parent elements that are not themselves styles but have styles applied to them.

      Standard style inheritance is from a style's parent and the parent style's parent and so on.

      It isn't clear from 16.43 that a consumer has to track and apply two distinct inheritance of style chains.

      My suggestion is that we explicitly say there are two inheritance models on play. I have crafted some suggested language in the proposal section.

        Attachments

          Activity

            People

            • Assignee:
              Patrick Patrick Durusau
              Reporter:
              Patrick Patrick Durusau
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: