Are paragraphs transparent?

David Thielen 3,121 Reputation points
2020-12-27T16:13:31.077+00:00

Hi all;

I have a textbox that has a blue background. And in it I have a paragraph and in the document.xml file that paragraph has no background setting.

The paragraph displays with a blue background. This makes sense if the paragraph background, if not specified, is then transparent and becomes the color of the textbox.

Is that the case?

thanks - dave

Office Open Specifications
Office Open Specifications
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Open Specifications: Technical documents for protocols, computer languages, standards support, and data portability. The goal with Open Specifications is to help developers open new opportunities to interoperate with Windows, SQL, Office, and SharePoint.
139 questions
{count} votes

Accepted answer
  1. Mike Bowen 76 Reputation points
    2020-12-29T18:01:15.947+00:00

    Hi Dave,

    You're correct, if a paragraph does not have an shd element then it will walk the style hierarchy and use the background set at closest element in the hierarchy or none if no elements have a background.

    From "17.3.1.31 shd (Paragraph Shading)" in ISO-29500 it states:

    "If this element is omitted on a given paragraph, its value is determined by the setting previously set at any level of the style hierarchy (i.e. that previous setting remains unchanged). If this setting is never specified in the style hierarchy, then no paragraph shading shall be applied."

    Best,

    Mike Bowen

    Escalation Engineer Microsoft Open Specifications


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.