17.4.30 shd

This element specifies the shading which shall be applied to all cells in the current row as part of a set of table- level property exceptions. Similarly to paragraph shading, this shading shall be applied to the contents of the tab up to the table borders, regardless of the presence of text - unlike cell shading, table shading shall include any cell padding. This property shall be superseded by any cell-level shading on any cell in this row (17.4.32).

This shading consists of three components:

  • Background Color
  • (optional) Pattern
  • (optional) Pattern Color

The resulting shading is applied by setting the background color behind the paragraph, then applying the pattern color using the mask supplied by the pattern over that background.

If this element is omitted, then the cell shading shall be determined by the table-level cell shading settings (17.4.31) for the current table.

[Example: Consider a table in which the final two rows have a set of table-level property exceptions giving them theme color shading in the background2 theme color, as follows:

This table-level shading exception would be specified using the following WordprocessingML:

<w:tblPrEx>
  <w:jc w:val="start" />
  <w:shd w:val="clear" w:color="auto" w:fill="EEECE1" w:themeFill="background2"
/>
</w:tblPrEx>

The shd element specifies cell shading with a clear pattern using a background theme color of background2. end example]

This element’s content model is defined by the common shading properties definition in 17.3.5.

Last updated on