Skip to content

Commit 33b85f6

Browse files
committed
[css-region] define interaction with offsetParent
1 parent cf71568 commit 33b85f6

2 files changed

Lines changed: 40 additions & 24 deletions

File tree

css-regions/Overview.html

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
rel=dc.rights>
1313
<meta content="CSS Regions Module Level 3" name=dc.title>
1414
<meta content=text name=dc.type>
15-
<meta content=2013-03-22 name=dc.date>
15+
<meta content=2013-04-05 name=dc.date>
1616
<meta content="Vincent Hardy" name=dc.creator>
1717
<meta content="Rossen Atanassov" name=dc.creator>
1818
<meta content="Alan Stearns" name=dc.creator>
@@ -49,7 +49,7 @@
4949

5050
<h1 id=css-regions-module>CSS Regions Module Level 3</h1>
5151

52-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 22 March 2013</h2>
52+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 5 April 2013</h2>
5353

5454
<dl>
5555
<dt>This version:
@@ -93,9 +93,13 @@ <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 22 March 2013</h2>
9393
Bugs for CSS regions</a>
9494

9595
<dt>Feedback:
96-
<dd><a href="mailto:www-style@w3.org?subject=%5B[css-regions]%5D%20feedback">www-style@w3.org</a>
97-
with subject line &ldquo;<kbd>[css-regions] <var>&hellip; message topic &hellip;</var></kbd>&rdquo;
98-
(<a rel="discussion" href="http://lists.w3.org/Archives/Public/www-style/">archives</a>)
96+
97+
<dd><a
98+
href="mailto:www-style@w3.org?subject=%5B[css-regions]%5D%20feedback">www-style@w3.org</a>
99+
with subject line “<kbd>[css-regions] <var>… message topic
100+
</var></kbd>” (<a
101+
href="http://lists.w3.org/Archives/Public/www-style/"
102+
rel=discussion>archives</a>)
99103
</dl>
100104
<!--begin-copyright-->
101105
<p class=copyright><a
@@ -270,8 +274,9 @@ <h2 class="no-num no-toc" id=table-of-contents>Table of contents</h2>
270274

271275
<li><a href="#cssomview-offset-attributes"><span class=secno>6.5.2.
272276
</span><code class=idl>offsetTop</code>, <code
273-
class=idl>offsetLeft</code>, <code class=idl>offsetWidth</code> and
274-
<code class=idl>offsetHeight</code></a>
277+
class=idl>offsetLeft</code>, <code class=idl>offsetWidth</code>,
278+
<code class=idl>offsetHeight</code> and <code
279+
class=idl>offsetParent</code></a>
275280
</ul>
276281
</ul>
277282

@@ -2328,17 +2333,20 @@ <h4 id=cssomview-getclientrects-and-getboundingclientrect><span
23282333

23292334
<h4 id=cssomview-offset-attributes><span class=secno>6.5.2. </span><code
23302335
class=idl>offsetTop</code>, <code class=idl>offsetLeft</code>, <code
2331-
class=idl>offsetWidth</code> and <code class=idl>offsetHeight</code></h4>
2336+
class=idl>offsetWidth</code>, <code class=idl>offsetHeight</code> and
2337+
<code class=idl>offsetParent</code></h4>
23322338

23332339
<p>The computation of the <a
23342340
href="http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interface">offset
23352341
attributes</a> for elements laid out in a <a href="#named-flow0">named
23362342
flow</a> follow the <a
23372343
href="http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interface">specification</a>
23382344
<a href="#CSSOM" rel=biblioentry>[CSSOM]<!--{{!CSSOM}}--></a>. For the
2339-
purpose of the algorithm, the <em>first CSS layout box</em> associated
2345+
purpose of these algorithms, the <em>first CSS layout box</em> associated
23402346
with an element laid out in a <a href="#named-flow0">named flow</a> is the
2341-
box generated for the first region the element is laid out into.
2347+
first box generated for the first region the element is laid out into. In
2348+
the offsetParent algorithm, the nearest ancestor search skips from the
2349+
topmost named flow elements directly to the body element.
23422350

23432351
<h2 id=regions-visual-formatting-details><span class=secno>7.
23442352
</span>Regions visual formatting details</h2>
@@ -2950,6 +2958,8 @@ <h3 id="changes_from_Aug_28_2012"><span class=secno>12.1. </span>Changes
29502958
28<sup>th</sup> 2012</a> version</h3>
29512959

29522960
<ul>
2961+
<li>Defined offsetParent interaction
2962+
29532963
<li>Removed implication of DOM manipulation
29542964

29552965
<li>Changed Appendix A to use custom element layout.
@@ -3151,16 +3161,16 @@ <h3 class=no-num id=normative-references>Normative references</h3>
31513161
<!-- Sorted by label -->
31523162

31533163
<dl class=bibliography>
3154-
<dt style="display: none"><!-- keeps the doc valid if the DL is empty -->
3164+
<dd style="display: none"><!-- keeps the doc valid if the DL is empty -->
31553165
<!---->
31563166

31573167
<dt id=CSS21>[CSS21]
31583168

31593169
<dd>Bert Bos; et al. <a
3160-
href="http://www.w3.org/TR/2011/REC-CSS2-20110607/"><cite>Cascading Style
3170+
href="http://www.w3.org/TR/2011/REC-CSS2-20110607"><cite>Cascading Style
31613171
Sheets Level 2 Revision 1 (CSS 2.1) Specification.</cite></a> 7 June
31623172
2011. W3C Recommendation. URL: <a
3163-
href="http://www.w3.org/TR/2011/REC-CSS2-20110607/">http://www.w3.org/TR/2011/REC-CSS2-20110607/</a>
3173+
href="http://www.w3.org/TR/2011/REC-CSS2-20110607">http://www.w3.org/TR/2011/REC-CSS2-20110607</a>
31643174
</dd>
31653175
<!---->
31663176

@@ -3257,7 +3267,7 @@ <h3 class=no-num id=other-references>Other references</h3>
32573267
<!-- Sorted by label -->
32583268

32593269
<dl class=bibliography>
3260-
<dt style="display: none"><!-- keeps the doc valid if the DL is empty -->
3270+
<dd style="display: none"><!-- keeps the doc valid if the DL is empty -->
32613271
<!---->
32623272

32633273
<dt id=CSS3-EXCLUSIONS>[CSS3-EXCLUSIONS]
@@ -3331,11 +3341,11 @@ <h3 class=no-num id=other-references>Other references</h3>
33313341

33323342
<dt id=CSS3PAGE>[CSS3PAGE]
33333343

3334-
<dd>Håkon Wium Lie; Melinda Grant. <a
3335-
href="http://www.w3.org/TR/2006/WD-css3-page-20061010"><cite>CSS3 Module:
3336-
Paged Media.</cite></a> 10 October 2006. W3C Working Draft. (Work in
3337-
progress.) URL: <a
3338-
href="http://www.w3.org/TR/2006/WD-css3-page-20061010">http://www.w3.org/TR/2006/WD-css3-page-20061010</a>
3344+
<dd>Melinda Grant; et al. <a
3345+
href="http://www.w3.org/TR/2013/WD-css3-page-20130314/"><cite>CSS Paged
3346+
Media Module Level 3.</cite></a> 14 March 2013. W3C Working Draft. (Work
3347+
in progress.) URL: <a
3348+
href="http://www.w3.org/TR/2013/WD-css3-page-20130314/">http://www.w3.org/TR/2013/WD-css3-page-20130314/</a>
33393349
</dd>
33403350
<!---->
33413351

css-regions/Overview.src.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2124,13 +2124,18 @@ <h4 id="cssomview-getclientrects-and-getboundingclientrect"><code class="idl">ge
21242124
returned by <code class="idl">getClientRects()</code>.</p>
21252125

21262126
<h4 id="cssomview-offset-attributes"><code class="idl">offsetTop</code>, <code class="idl">offsetLeft</code>,
2127-
<code class="idl">offsetWidth</code> and <code class="idl">offsetHeight</code></h4>
2127+
<code class="idl">offsetWidth</code>, <code class="idl">offsetHeight</code> and <code class="idl">offsetParent</code></h4>
21282128

21292129
<p>The computation of the <a href="http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interface">offset attributes</a>
2130-
for elements laid out in a <span>named flow</span> follow the <a href="http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interface">specification</a> [[!CSSOM]]. For the purpose of the
2131-
algorithm, the <em>first CSS layout box</em> associated
2132-
with an element laid out in a <span>named flow</span> is the box generated for the first region
2133-
the element is laid out into.</p>
2130+
for elements laid out in a <span>named flow</span> follow the <a href="http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interface">specification</a> [[!CSSOM]]. For the purpose of these
2131+
algorithms, the <em>first CSS layout box</em> associated
2132+
with an element laid out in a <span>named flow</span>
2133+
is the first box generated for the first region
2134+
the element is laid out into.
2135+
In the offsetParent algorithm,
2136+
the nearest ancestor search skips
2137+
from the topmost named flow elements
2138+
directly to the body element.</p>
21342139

21352140
<h2 id="regions-visual-formatting-details">Regions visual formatting details</h2>
21362141

@@ -2515,6 +2520,7 @@ <h2 id="changes">Changes</h2>
25152520
<h3 id="changes_from_Aug_28_2012">Changes from <a href="http://www.w3.org/TR/2012/WD-css3-regions-20120823/">August 28<sup>th</sup> 2012</a> version</h3>
25162521

25172522
<ul>
2523+
<li>Defined offsetParent interaction</li>
25182524
<li>Removed implication of DOM manipulation</li>
25192525
<li>Changed Appendix A to use custom element layout.</li>
25202526
<li>Noted change in pseudo-element generation with flow-from.</li>

0 commit comments

Comments
 (0)