Skip to content

Commit a128a8f

Browse files
author
rossen
committed
Introducing position:sticky
1 parent e48105e commit a128a8f

File tree

2 files changed

+35
-7
lines changed

2 files changed

+35
-7
lines changed

css-position/Overview.html

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107

108108
<h1>CSS Positioned Layout Module Level 3</h1>
109109

110-
<h2 class="no-num no-toc">Editor's Draft 13 October 2013</h2>
110+
<h2 class="no-num no-toc">Editor's Draft 14 October 2013</h2>
111111

112112
<dl>
113113
<dt>This version:
@@ -1806,7 +1806,10 @@ <h3 id=box-offsets-trbl><span class=secno>6.8. </span>Box offsets: ‘<a
18061806
<td> for <a href="#relative" title="'position'!!''relative''"><code
18071807
class=css>position: relative</code></a>, see <a
18081808
href="#relative-positioning1" title="relative positioning">Relative
1809-
Positioning</a>. For <a href="#static"
1809+
positioning</a>. For <a href="#sticky"
1810+
title="'position'!!''sticky''"><code class=css>position:
1811+
sticky</code></a>, see <span title="sticky positioning">Sticky
1812+
positioning</span>. For <a href="#static"
18101813
title="'position'!!''static''"><code class=css>position:
18111814
static</code></a>, ‘<code class=css>auto</code>’. Otherwise: if
18121815
specified as a ‘<code class=css>&lt;length&gt;</code>’, the
@@ -1831,6 +1834,11 @@ <h3 id=box-offsets-trbl><span class=secno>6.8. </span>Box offsets: ‘<a
18311834
(i.e., the box is given a position in the <a href="#normal-flow0">normal
18321835
flow</a>, and then offset from that position according to this property).
18331836

1837+
<p id=for-stickily-positioned-boxes-the-value-0> For stickily positioned
1838+
boxes, the value is used to compute the <em>sticky-constraint
1839+
rectangle</em> as described in <span title="sticky positioning">Sticky
1840+
positioning</span>.
1841+
18341842
<p id=for-absolutely-positioned-and-center-pos0> For absolutely positioned
18351843
and center positioned elements whose <a
18361844
href="#containing-block0">containing block</a> is based on a block-level
@@ -1890,7 +1898,10 @@ <h3 id=box-offsets-trbl><span class=secno>6.8. </span>Box offsets: ‘<a
18901898
<td> for <a href="#relative" title="'position'!!''relative''"><code
18911899
class=css>position: relative</code></a>, see <a
18921900
href="#relative-positioning1" title="relative positioning">Relative
1893-
Positioning</a>. For <a href="#static"
1901+
positioning</a>. For <a href="#sticky"
1902+
title="'position'!!''sticky''"><code class=css>position:
1903+
sticky</code></a>, see <span title="sticky positioning">Sticky
1904+
positioning</span>. For <a href="#static"
18941905
title="'position'!!''static''"><code class=css>position:
18951906
static</code></a>, ‘<code class=css>auto</code>’. Otherwise: if
18961907
specified as a ‘<code class=css>&lt;length&gt;</code>’, the
@@ -1915,6 +1926,11 @@ <h3 id=box-offsets-trbl><span class=secno>6.8. </span>Box offsets: ‘<a
19151926
(i.e., the box is given a position in the <a href="#normal-flow0">normal
19161927
flow</a>, and then offset from that position according to this property).
19171928

1929+
<p id=for-stickily-positioned-boxes-the-value-1> For stickily positioned
1930+
boxes, the value is used to compute the <em>sticky-constraint
1931+
rectangle</em> as described in <span title="sticky positioning">Sticky
1932+
positioning</span>.
1933+
19181934
<p id=for-absolutely-positioned-and-center-pos1> For absolutely positioned
19191935
and center positioned elements whose <a
19201936
href="#containing-block0">containing block</a> is based on a block-level
@@ -2002,7 +2018,7 @@ <h3 id=box-offsets-trbl><span class=secno>6.8. </span>Box offsets: ‘<a
20022018
(i.e., the box is given a position in the <a href="#normal-flow0">normal
20032019
flow</a>, and then offset from that position according to this property).
20042020

2005-
<p id=for-stickily-positioned-boxes-the-value-0> For stickily positioned
2021+
<p id=for-stickily-positioned-boxes-the-value-2> For stickily positioned
20062022
boxes, the value is used to compute the <em>sticky-constraint
20072023
rectangle</em> as described in <span title="sticky positioning">Sticky
20082024
positioning</span>.

css-position/Overview.src.html

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ <h2 id="positioning-schemes"><dfn title="positioning schemes">Positioning scheme
412412
Normal flow<br>
413413
In CSS, <span>normal flow</span> includes <a href="http://www.w3.org/TR/CSS2/visuren.html#block-formatting">block formatting</a> of block-level boxes,
414414
<a href="http://www.w3.org/TR/CSS2/visuren.html#inline-formatting">inline formatting</a> of inline-level boxes,
415-
and <span title="relative positioning">relative</span> and <span title="sticky positioning">sticky</span> positioning of block-level and inline-level boxes.
415+
and <span title="relative positioning">relative</span> and <span title="sticky positioning">sticky</span> positioning of block-level and inline-level boxes.
416416
</li>
417417
<li>
418418
Floats<br>
@@ -1047,7 +1047,9 @@ <h3 id="box-offsets-trbl">Box offsets: 'top', 'right', 'bottom', 'left'</h3>
10471047
<tr>
10481048
<th>Computed&nbsp;value:</th>
10491049
<td>
1050-
for <span title="'position'!!''relative''">'position: relative'</span>, see <span title="relative positioning">Relative Positioning</span>. For <span title="'position'!!''static''">'position: static'</span>,
1050+
for <span title="'position'!!''relative''">'position: relative'</span>, see <span title="relative positioning">Relative positioning</span>.
1051+
For <span title="'position'!!''sticky''">'position: sticky'</span>, see <span title="sticky positioning">Sticky positioning</span>.
1052+
For <span title="'position'!!''static''">'position: static'</span>,
10511053
''auto''. Otherwise: if specified as a '&lt;length&gt;', the corresponding absolute length;
10521054
if specified as a '&lt;percentage&gt;', the specified value; otherwise, ''auto''.
10531055
</td>
@@ -1067,6 +1069,10 @@ <h3 id="box-offsets-trbl">Box offsets: 'top', 'right', 'bottom', 'left'</h3>
10671069
offset from that position according to this property).
10681070
</p>
10691071
<p>
1072+
For stickily positioned boxes, the value is used to compute the <em>sticky-constraint
1073+
rectangle</em> as described in <span title="sticky positioning">Sticky positioning</span>.
1074+
</p>
1075+
<p>
10701076
For absolutely positioned and center positioned elements whose <span>containing block</span>
10711077
is based on a block-level element, this property is an offset from the padding edge of
10721078
that element.
@@ -1112,7 +1118,9 @@ <h3 id="box-offsets-trbl">Box offsets: 'top', 'right', 'bottom', 'left'</h3>
11121118
<tr>
11131119
<th>Computed&nbsp;value:</th>
11141120
<td>
1115-
for <span title="'position'!!''relative''">'position: relative'</span>, see <span title="relative positioning">Relative Positioning</span>. For <span title="'position'!!''static''">'position: static'</span>,
1121+
for <span title="'position'!!''relative''">'position: relative'</span>, see <span title="relative positioning">Relative positioning</span>.
1122+
For <span title="'position'!!''sticky''">'position: sticky'</span>, see <span title="sticky positioning">Sticky positioning</span>.
1123+
For <span title="'position'!!''static''">'position: static'</span>,
11161124
''auto''. Otherwise: if specified as a '&lt;length&gt;', the corresponding absolute length;
11171125
if specified as a '&lt;percentage&gt;', the specified value; otherwise, ''auto''.
11181126
</td>
@@ -1132,6 +1140,10 @@ <h3 id="box-offsets-trbl">Box offsets: 'top', 'right', 'bottom', 'left'</h3>
11321140
offset from that position according to this property).
11331141
</p>
11341142
<p>
1143+
For stickily positioned boxes, the value is used to compute the <em>sticky-constraint
1144+
rectangle</em> as described in <span title="sticky positioning">Sticky positioning</span>.
1145+
</p>
1146+
<p>
11351147
For absolutely positioned and center positioned elements whose <span>containing block</span>
11361148
is based on a block-level element, this property is an offset from the padding edge of
11371149
that element.

0 commit comments

Comments
 (0)