function getPosition(element, computedStyle) {
  if (element.parentElement && element.parentElement.tagName === 'PICTURE') {
    const parentStyle = window.getComputedStyle(element.parentElement);
    return parentStyle.getPropertyValue('position');
  }
  return computedStyle.getPropertyValue('position');
}
If an image is within `picture`, the `picture` element's css position
is what we want to collect, since that position is relevant to CLS.
@param {Element} element
@param {CSSStyleDeclaration} computedStyle