Skip to content

Commit 9d33086

Browse files
committed
[css-grid] Define the static position of absposes in a grid, per task force discussion.
1 parent bf800cd commit 9d33086

2 files changed

Lines changed: 14 additions & 16 deletions

File tree

css-grid/Overview.html

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
</a></p>
4343
<h1 class="p-name no-ref" id=title>CSS Grid Layout Module Level 1</h1>
4444
<h2 class="no-num no-toc no-ref" id=subtitle><span class=content>Editor's Draft,
45-
<span class=dt-updated><span class=value-title title=20130823>23 August 2013</span></span></span></h2>
45+
<span class=dt-updated><span class=value-title title=20130826>26 August 2013</span></span></span></h2>
4646
<div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://dev.w3.org/csswg/css-grid/>http://dev.w3.org/csswg/css-grid/</a><dt>Latest version:<dd><a href=http://www.w3.org/TR/css3-grid-layout/>http://www.w3.org/TR/css3-grid-layout/</a><dt>Editor's Draft:<dd><a href=http://dev.w3.org/csswg/css-grid/>http://dev.w3.org/csswg/css-grid/</a>
4747
<dt>Feedback:</dt>
4848
<dd><a href="mailto:www-style@w3.org?subject=%5Bcss-grid%5D%20feedback">www-style@w3.org</a>
@@ -761,19 +761,18 @@ <h3 data-level=4.1 id=abspos-items><span class=secno>4.1 </span><span class=cont
761761

762762
<p>
763763
An absolutely-positioned child element of a <a href=#grid-container>grid container</a> does not participate directly in grid layout.
764-
Its static position is ???
765-
766-
<p class=issue>
767-
The static position is affected by the alignment properties,
768-
as if it was a 0x0 thing floating around in the <a>containing block</a>.
769-
(Defaults to the start/start corner, since <span class=css data-link-type=maybe>stretch</span> can't do anything to it.)
764+
Its static position is affected by the values of <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-align-3/#justify-self title=justify-self>justify-self</a> and <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-align-3/#align-self title=align-self>align-self</a> on it,
765+
using the <a href=#grid-container>grid container</a>’s padding box as the <a href=http://dev.w3.org/csswg/css-align-3/#alignment-container>alignment container</a>
766+
and the element’s own box as the <a href=http://dev.w3.org/csswg/css-align-3/#alignment-container>alignment container</a>.
767+
A <span class=css data-link-type=maybe>baseline</span> value for either <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-align-3/#justify-self title=justify-self>justify-self</a> or <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-align-3/#align-self title=align-self>align-self</a> is treated as <a class=css data-link-type=maybe href=http://dev.w3.org/csswg/css-writing-modes-3/#start>start</a> for these purposes.
770768

771769
<p>
772770
If an absolutely positioned element's <a>containing block</a>
773771
is generated by a <a href=#grid-container>grid container</a>,
774772
the <a href=#grid-placement-properties>grid-placement properties</a> can be used to constrain it to a particular <a href=#grid-area>grid area</a>,
775773
similar to how they affect regular <a href=#grid-item>grid items</a>.
776-
In this case, an <a data-link-for="<grid-line>" data-link-type=value href=#grid-placement-auto>auto</a> value for a <a href=#grid-placement-properties>grid-placement property</a> indicates the corresponding padding edge of the <a href=#grid-container>grid container</a>.
774+
In this case, an <a data-link-for="<grid-line>" data-link-type=value href=#grid-placement-auto>auto</a> value for a <a href=#grid-placement-properties>grid-placement property</a>
775+
indicates the corresponding padding edge of the <a href=#grid-container>grid container</a>.
777776

778777
<p class=note>
779778
Absolute positioning can allow an element to “skip past” intervening grid containers,

css-grid/Overview.src.html

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h1>CSS Grid Layout Module Level 1</h1>
1616
Issues list: <a href="https://www.w3.org/Bugs/Public/buglist.cgi?product=CSS&amp;component=Grid+Layout&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED">In Bugzilla</a>
1717
Abstract: This CSS module defines a two-dimensional grid-based layout system, optimized for user interface design. In the grid layout model, the children of a grid container can be positioned into arbitrary slots in a flexible or fixed predefined layout grid.
1818
Ignored Terms: column-*, justify-*, containing block, grid-field, <positive-integer>, <ident>, auto
19-
Link Defaults: css21 (property) margin
19+
Link Defaults: css21 (property) margin, css-align-3 (dfn) alignment container/alignment subject
2020
</pre>
2121

2222
<style type="text/css">
@@ -675,19 +675,18 @@ <h3 id="abspos-items">
675675

676676
<p>
677677
An absolutely-positioned child element of a <a>grid container</a> does not participate directly in grid layout.
678-
Its static position is ???
679-
680-
<p class='issue'>
681-
The static position is affected by the alignment properties,
682-
as if it was a 0x0 thing floating around in the <a>containing block</a>.
683-
(Defaults to the start/start corner, since ''stretch'' can't do anything to it.)
678+
Its static position is affected by the values of 'justify-self' and 'align-self' on it,
679+
using the <a>grid container</a>’s padding box as the <a>alignment container</a>
680+
and the element’s own box as the <a>alignment container</a>.
681+
A ''baseline'' value for either 'justify-self' or 'align-self' is treated as ''start'' for these purposes.
684682

685683
<p>
686684
If an absolutely positioned element's <a>containing block</a>
687685
is generated by a <a>grid container</a>,
688686
the <a>grid-placement properties</a> can be used to constrain it to a particular <a>grid area</a>,
689687
similar to how they affect regular <a>grid items</a>.
690-
In this case, an <a value for="<grid-line>">auto</a> value for a <a>grid-placement property</a> indicates the corresponding padding edge of the <a>grid container</a>.
688+
In this case, an <a value for="<grid-line>">auto</a> value for a <a>grid-placement property</a>
689+
indicates the corresponding padding edge of the <a>grid container</a>.
691690

692691
<p class='note'>
693692
Absolute positioning can allow an element to “skip past” intervening grid containers,

0 commit comments

Comments
 (0)