17.3.2.4 bdr

This element specifies information about the border applied to the text in the current run.

The first piece of information specified by the bdr element is that the current shall have a border when displayed. This information is specified simply by the presence of the bdr element in run’s properties.

The second piece of information concerns the set of runs which share the current run border. This is determined based on the attributes on the bdr element. If the set of attribute values specifies on two adjacent runs is identical, then those two runs shall be considered to be part of the same run border group and rendered within the same set of borders in the document.

If this element is not present, the default value is to leave the formatting applied at previous level in the style hierarchy. If this element is never applied in the style hierarchy, then no run border shall be applied to the text in this run.

[Example: Consider a document in which the following two runs are located adjacent to one another:

<w:r>
  <w:rPr>
    <w:bdr w:val="single" w:sz="36" w:space="0" w:color="B8CCE4"
w:themeColor="accent1" w:themeTint="66" />
  </w:rPr>
  <w:t xml:space="preserve">run one</w:t>
</w:r>
<w:r >
  <w:rPr>
    <w:b />
    <w:bdr w:val="single" w:sz="36" w:space="0" w:color="B8CCE4"
w:themeColor="accent1" w:themeTint="66" />
  </w:rPr>
  <w:t>run two</w:t>
</w:r>

These two runs, although each is distinct, are combined when rendering the text border because the bdr elements are identical between the two runs. end example]

This element’s content model is defined by the common border properties definition in 17.3.4.

Last updated on