// the 'footnote' counter in its 'content' property then the computed
// value of 'move-to' is 'footnotes'.
if (isCounterUsed(currentNode.getParent(), "footnote"))
{
layoutContext.setValue(ContentStyleKeys.MOVE_TO,
new CSSStringValue(CSSStringType.STRING, "footnotes"));
return;
}
// For '::alternate' pseudo-elements, if the superior parent uses
// the 'endnote' counter in its 'content' property then the computed
// value of 'move-to' is 'endnotes'.
if (isCounterUsed(currentNode.getParent(), "endnote"))
{
layoutContext.setValue(ContentStyleKeys.MOVE_TO,
new CSSStringValue(CSSStringType.STRING, "endnotes"));
return;
}
// For '::alternate' pseudo-elements, if the superior parent uses
// the 'section-note' counter in its 'content' property then the
// computed value of 'move-to' is 'section-notes'.
if (isCounterUsed(currentNode.getParent(), "section-note"))
{
layoutContext.setValue(ContentStyleKeys.MOVE_TO,
new CSSStringValue(CSSStringType.STRING, "section-notes"));
return;
}
}
layoutContext.setValue(ContentStyleKeys.MOVE_TO, MoveToValues.HERE);
}