Skip to content

Commit 55354a2

Browse files
author
Simon Pieters
committed
[cssom-view] Introduce the terms 'SVG layout box' and 'layout box'
1 parent 813d049 commit 55354a2

2 files changed

Lines changed: 18 additions & 10 deletions

File tree

cssom-view/Overview.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ <h2 id="terminology"><span class="secno">3 </span>Terminology</h2>
243243
<p><dfn id="viewport">Viewport</dfn> and
244244
<dfn id="initial-containing-block">initial containing block</dfn> are
245245
defined by CSS 2.1 unless there is an ancestor <code title="">foreignObject</code>
246-
element in the <code title="">http://www.w3.org/2000/svg</code> namespace in which
246+
element in the <code title="">http://www.w3.org/2000/svg</code> namespace that has an associated <a href="#svg-layout-box">SVG layout box</a> in which
247247
case that element acts as viewport and initial containing block.
248248
<!--<span data-anolis-ref>CSS</span>-->
249249

@@ -419,6 +419,12 @@ <h2 id="terminology"><span class="secno">3 </span>Terminology</h2>
419419
'table-column-group' must be considered to have an associated <a href="#css-layout-box">CSS
420420
layout box</a> (the column or column group, respectively).</p>
421421

422+
<p>The term <dfn id="svg-layout-box">SVG layout box</dfn> refers to the same term in SVG.
423+
424+
<p class="issue">The terms <a href="#css-layout-box">CSS layout box</a> and <a href="#svg-layout-box">SVG layout box</a> are not currently defined by CSS or SVG.
425+
426+
<p>The term <dfn id="layout-box">layout box</dfn> refers to either a <a href="#css-layout-box">CSS layout box</a> or an <a href="#svg-layout-box">SVG layout box</a>.
427+
422428
<h3 id="css-pixels"><span class="secno">3.1 </span>CSS pixels</h3>
423429

424430
<p>All coordinates and dimensions for the APIs defined in this
@@ -825,11 +831,9 @@ <h2 id="extensions-to-the-element-interface"><span class="secno">7 </span>Extens
825831
<p>The <dfn id="dom-element-getclientrects" title="dom-Element-getClientRects"><code>getClientRects()</code></dfn> method, when invoked, must return the result of the following algorithm:</p>
826832
<ol>
827833
<li><p>If the element on which it was invoked does not have an associated
828-
<a href="#css-layout-box">CSS layout box</a> and is not in the <code title="">http://www.w3.org/2000/svg</code>
829-
namespace return an empty <code><a href="#clientrectlist">ClientRectList</a></code> object and stop
834+
<a href="#layout-box">layout box</a> return an empty <code><a href="#clientrectlist">ClientRectList</a></code> object and stop
830835
this algorithm.</li>
831-
<li><p>If the element does not have an associated <a href="#css-layout-box">CSS layout box</a> and is
832-
in the <code title="">http://www.w3.org/2000/svg</code> namespace return a
836+
<li><p>If the element has an associated <a href="#svg-layout-box">SVG layout box</a> return a
833837
<code><a href="#clientrectlist">ClientRectList</a></code> object containing a single
834838
<code><a href="#clientrect">ClientRect</a></code> object that describes the bounding box of the
835839
element as defined by the SVG specification.

cssom-view/Overview.src.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ <h2>Terminology</h2>
205205
<p><dfn>Viewport</dfn> and
206206
<dfn>initial containing block</dfn> are
207207
defined by CSS 2.1 unless there is an ancestor <code title>foreignObject</code>
208-
element in the <code title>http://www.w3.org/2000/svg</code> namespace in which
208+
element in the <code title>http://www.w3.org/2000/svg</code> namespace that has an associated <span>SVG layout box</span> in which
209209
case that element acts as viewport and initial containing block.
210210
<!--<span data-anolis-ref>CSS</span>-->
211211

@@ -381,6 +381,12 @@ <h2>Terminology</h2>
381381
'table-column-group' must be considered to have an associated <span>CSS
382382
layout box</span> (the column or column group, respectively).</p>
383383

384+
<p>The term <dfn>SVG layout box</dfn> refers to the same term in SVG.
385+
386+
<p class=issue>The terms <span>CSS layout box</span> and <span>SVG layout box</span> are not currently defined by CSS or SVG.
387+
388+
<p>The term <dfn>layout box</dfn> refers to either a <span>CSS layout box</span> or an <span>SVG layout box</span>.
389+
384390
<h3>CSS pixels</h3>
385391

386392
<p>All coordinates and dimensions for the APIs defined in this
@@ -787,11 +793,9 @@ <h2>Extensions to the <code title>Element</code> Interface</h2>
787793
<p>The <dfn title=dom-Element-getClientRects><code>getClientRects()</code></dfn> method, when invoked, must return the result of the following algorithm:</p>
788794
<ol>
789795
<li><p>If the element on which it was invoked does not have an associated
790-
<span>CSS layout box</span> and is not in the <code title>http://www.w3.org/2000/svg</code>
791-
namespace return an empty <code>ClientRectList</code> object and stop
796+
<span>layout box</span> return an empty <code>ClientRectList</code> object and stop
792797
this algorithm.</p></li>
793-
<li><p>If the element does not have an associated <span>CSS layout box</span> and is
794-
in the <code title>http://www.w3.org/2000/svg</code> namespace return a
798+
<li><p>If the element has an associated <span>SVG layout box</span> return a
795799
<code>ClientRectList</code> object containing a single
796800
<code>ClientRect</code> object that describes the bounding box of the
797801
element as defined by the SVG specification.

0 commit comments

Comments
 (0)