Documentation: Other HEAD Merging

Verbatim Import

All other elements and tags in the HEAD of the resource document and Master Page (including all chained Master Pages, if any) appear in the final merged document verbatim with those closest to the resource document appearing latest in the final merged document's HEAD tag.

Examples

  1. Adding a page-specific STYLE tag to the HEAD tag of the resource document when no Master Page in the merge chain specifies any STYLE tags of their own results in the page-specific style rules being added to end of the final merged document's HEAD tag:
    <style type="text/css">
       #divThatHereOnlyLives {
          border: red solid thick;
       }
    </style>
    + (no STYLE rules)
    =
    <style type="text/css">
       #divThatHereOnlyLives {
          border: red solid thick;
       }
    </style>
  2. No extra merging occurs, so STYLE tags are simply appended to the HEAD tag of the final merged document in such an order that those closest to the resource document occur latest in the resulting HEAD tag (allowing more relevant rules to override general rules in a predictable way); note in this example that the actual alignment of text in the article > footer > address will be centered when rendered, which is exactly what the resource document's author wants even though it contradicts what the Master Page's author designed for:
    <style type="text/css">
       article > footer > address {
          text-align: center;
       }
    </style>
    +
    <style type="text/css">
       article > footer > address {
          text-align: left;
       }
    </style>
    =
    <style type="text/css">
       article > footer > address {
          text-align: left;
       }
    </style>
    <style type="text/css">
       article > footer > address {
          text-align: center;
       }
    </style>