-<p>The {@name{} attribute must return the result of running these steps:</p> <ol> <li><p>If the element is <a href="#the-html-body-element">the HTML <code>body</code> element</a> or does not have any associated <a href="#css-layout-box">CSS layout box</a> return zero and terminate this algorithm.</li> <li><p>If the <code title="widl-HTMLElement-offsetParent">offsetParent</code> of the element is null return the x-coordinate of the left <a href="#border-edge">border edge</a> of the first <a href="#css-layout-box">CSS layout box</a> associated with the element, relative to the <a href="#initial-containing-block">initial containing block</a> origin, and terminate this algorithm.</li> <li> <p>Return the result of subtracting the x-coordinate of the left <a href="#padding-edge">padding edge</a> of the first <a href="#css-layout-box">CSS layout box</a> associated with the <code title="widl-HTMLElement-offsetParent">offsetParent</code> of the element from the x-coordinate of the left <a href="#border-edge">border edge</a> of the first <a href="#css-layout-box">CSS layout box</a> associated with the element, relative to the <a href="#initial-containing-block">initial containing block</a> origin.</p> </li> </ol></dd>
0 commit comments