docs: def y_offset(self, container):
          """Vertical baseline offset (up is positive)."""
          offset = (self.parent.y_offset(container)\
                    if hasattr(self.parent, 'y_offset') else 0)
          if self.is_script(container):
              style = self._style(container)
              offset += (self.parent.height(container) *
                         self.position[style.position])
              # The Y offset should only change once for the nesting level
              # where the position style is set, hence we don't recursively
              # get the position style using self.get_style('position')
          return offset