E84C [css-grid] Resolved value falls back to computed value when no used v… · w3c/csswg-drafts@ee967e5 · GitHub
Skip to content

Commit ee967e5

Browse files
committed
[css-grid] Resolved value falls back to computed value when no used value exists. <http://lists.w3.org/Archives/Public/www-style/2014Feb/0732.html>
1 parent b2a0dd9 commit ee967e5

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

css-grid/Overview.bs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,9 @@ Subgrids: the ''grid-template-rows/subgrid'' keyword</h4>
11101110
<h4 id='resolved-track-list'>
11111111
Resolved Values</h4>
11121112

1113-
The <a href="http://www.w3.org/TR/cssom/#resolved-values">resolved value</a> of the 'grid-template-rows' and 'grid-template-columns' properties is the used value,
1113+
When an element's 'display' is ''grid'' or ''inline-grid'' and it generates a box,
1114+
the <a href="http://www.w3.org/TR/cssom/#resolved-values">resolved value</a>
1115+
of the 'grid-template-rows' and 'grid-template-columns' properties is the used value,
11141116
serialized as follows:
11151117

11161118
<ul>
@@ -1127,6 +1129,9 @@ Resolved Values</h4>
11271129
may be serialized with the ''repeat()'' notation.
11281130
</ul>
11291131

1132+
Otherwise, (e.g. when the element has ''display: none'' or is not a grid)
1133+
the resolved value is simply the computed value.
1134+
11301135
<div class="example">
11311136
<pre>
11321137
&lt;style>

css-grid/Overview.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,9 @@ <h4 class="heading settled heading" data-level=5.1.4 id=subgrids><span class=sec
12191219
<h4 class="heading settled heading" data-level=5.1.5 id=resolved-track-list><span class=secno>5.1.5 </span><span class=content>
12201220
Resolved Values</span><a class=self-link href=#resolved-track-list></a></h4>
12211221

1222-
<p> The <a href=http://www.w3.org/TR/cssom/#resolved-values>resolved value</a> of the <a class=property data-link-type=propdesc href=#propdef-grid-template-rows title=grid-template-rows>grid-template-rows</a> and <a class=property data-link-type=propdesc href=#propdef-grid-template-columns title=grid-template-columns>grid-template-columns</a> properties is the used value,
1222+
<p> When an element’s <a class=property data-link-type=propdesc href=http://www.w3.org/TR/CSS21/visuren.html#propdef-display title=display>display</a> is <a class=css data-link-type=maybe href=#valuedef-grid title=grid>grid</a> or <a class=css data-link-type=maybe href=#valuedef-inline-grid title=inline-grid>inline-grid</a> and it generates a box,
1223+
the <a href=http://www.w3.org/TR/cssom/#resolved-values>resolved value</a>
1224+
of the <a class=property data-link-type=propdesc href=#propdef-grid-template-rows title=grid-template-rows>grid-template-rows</a> and <a class=property data-link-type=propdesc href=#propdef-grid-template-columns title=grid-template-columns>grid-template-columns</a> properties is the used value,
12231225
serialized as follows:
12241226

12251227
<p> <ul>
@@ -1236,6 +1238,9 @@ <h4 class="heading settled heading" data-level=5.1.5 id=resolved-track-list><spa
12361238
may be serialized with the <a class=css data-link-type=maybe href=#funcdef-repeat title=repeat()>repeat()</a> notation.
12371239
</ul>
12381240

1241+
<p> Otherwise, (e.g. when the element has <a class=css data-link-type=propdesc href=http://www.w3.org/TR/CSS21/visuren.html#propdef-display title=display>display: none</a> or is not a grid)
1242+
the resolved value is simply the computed value.
1243+
12391244
<div class=example>
12401245
<pre> &lt;style&gt;
12411246
#grid {

0 commit comments

Comments
 (0)