'For docx output where tags are not nested, we cannot directly
simulate the HTML vertical-align rendering model. Instead use the
approximation of considering the first non-default vertical-align'

@property
def first_vertical_align(self):

    val = self['vertical-align']
    if (val != 'baseline'):
        raw_val = self._get('vertical-align')
        if ('%' in raw_val):
            val = self._unit_convert(raw_val, base=self['line-height'])
        return val
    parent = self._get_parent()
    if ((parent is not None) and ('inline' in parent['display'])):
        return parent.first_vertical_align
