Skip to content

Commit dc24c72

Browse files
author
Simon Pieters
committed
[cssom-view] img.x/y return 0 if it's not rendered.
1 parent c7a14b9 commit dc24c72

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

cssom-view/Overview.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,11 +1487,11 @@ <h2 id="excensions-to-the-htmlimageelement-interface"><span class="secno">9 </sp
14871487

14881488
<p>The <dfn id="dom-htmlimageelement-x" title="dom-HTMLImageElement-x"><code>x</code></dfn> attribute, on getting, must return the x-coordinate of the left <a href="#border-edge">border edge</a> of the
14891489
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, ignoring any
1490-
<a href="#transforms">transforms</a> that apply to the element and its ancestors.
1490+
<a href="#transforms">transforms</a> that apply to the element and its ancestors, or zero if there is no <a href="#css-layout-box">CSS layout box</a>.
14911491

14921492
<p>The <dfn id="dom-htmlimageelement-y" title="dom-HTMLImageElement-y"><code>y</code></dfn> attribute, on getting, must return the y-coordinate of the top <a href="#border-edge">border edge</a> of the
14931493
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, ignoring any
1494-
<a href="#transforms">transforms</a> that apply to the element and its ancestors.
1494+
<a href="#transforms">transforms</a> that apply to the element and its ancestors, or zero if there is no <a href="#css-layout-box">CSS layout box</a>.
14951495

14961496

14971497
<h2 id="extensions-to-the-range-interface"><span class="secno">10 </span>Extensions to the <code title="">Range</code> Interface</h2>

cssom-view/Overview.src.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,11 +1443,11 @@ <h2>Excensions to the <code title>HTMLImageElement</code> Interface</h2>
14431443

14441444
<p>The <dfn title=dom-HTMLImageElement-x><code>x</code></dfn> attribute, on getting, must return the x-coordinate of the left <span>border edge</span> of the
14451445
first <span>CSS layout box</span> associated with the element, relative to the <span>initial containing block</span> origin, ignoring any
1446-
<span>transforms</span> that apply to the element and its ancestors.
1446+
<span>transforms</span> that apply to the element and its ancestors, or zero if there is no <span>CSS layout box</span>.
14471447

14481448
<p>The <dfn title=dom-HTMLImageElement-y><code>y</code></dfn> attribute, on getting, must return the y-coordinate of the top <span>border edge</span> of the
14491449
first <span>CSS layout box</span> associated with the element, relative to the <span>initial containing block</span> origin, ignoring any
1450-
<span>transforms</span> that apply to the element and its ancestors.
1450+
<span>transforms</span> that apply to the element and its ancestors, or zero if there is no <span>CSS layout box</span>.
14511451

14521452

14531453
<h2>Extensions to the <code title>Range</code> Interface</h2>

0 commit comments

Comments
 (0)