final LayoutContext layoutContext = currentNode.getLayoutContext();
final CSSValue value = layoutContext.getValue(key);
final CSSConstant result;
if (FontStretch.WIDER.equals(value))
{
// ask the parent ...
CSSConstant parentStretch = queryParent(currentNode.getParent());
result = FontStretch.getByOrder(FontStretch.getOrder(parentStretch) + 1);
}
else if (FontStretch.NARROWER.equals(value))
{
// ask the parent ...
CSSConstant parentStretch = queryParent(currentNode.getParent());
result = FontStretch.getByOrder(FontStretch.getOrder(parentStretch) - 1);
}
else if (value instanceof CSSConstant)
{
CSSConstant stretch = (CSSConstant) lookupValue((CSSConstant) value);
if (stretch != null)
{