Skip to content

Commit a2934e8

Browse files
committed
[css-tables] Minor varia
1 parent 15fe334 commit a2934e8

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

css-tables-3/Overview.bs

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ spec:css21; type:property; text:max-width
9595
<ul><li>Each of them contaning one or more <a href="#table-cell">table cells</a></li></ul>
9696
<li>Optionally: one or more <a href="#table-column">table columns</a>,
9797
optionally in <a href="#table-column-group">column groups</a>
98-
<li>Optionally: a <a href="#table-caption">table caption</a>.
98+
<li>Optionally: one or more <a href="#table-caption">table caption</a>.
9999
</ul>
100100
</ul>
101101

@@ -170,7 +170,11 @@ spec:css21; type:property; text:max-width
170170
<p class="advisement">
171171
Authors must not assign a display type from the previous list to replaced elements (like input fields or images).
172172
When the 'display' property of a replaced element computes to one of these values,
173-
it is handled instead as would <code>inline</code> (for <a>inline-table</a>) or <code>block</code> (for all other values).
173+
it is handled instead as would
174+
<code>inline</code> (for <a>inline-table</a>, <a>table-cell</a>, <a>table-column</a>) or
175+
<code>block</code> (for all other values).
176+
Whitespace collapsing and box generation must happen around those replaced elements
177+
like if they never had any other display type.
174178
<br/>
175179
<span class="issue">This is a breaking change from css 2.1 but matches implementations</span>
176180
</p>
@@ -270,7 +274,7 @@ spec:css21; type:property; text:max-width
270274
Missing elements cause the generation of anonymous boxes according to the following rules:
271275

272276
<!--------------------------------------------------------------------------------->
273-
<h4 id="fixupAlgo">Fixup Algorithm</h4>
277+
<h4 id="fixup-algorithm">Fixup Algorithm</h4>
274278

275279
<p>
276280
For the purposes of these rules, out-of-flow elements are represented as inline elements of zero width and height.
@@ -828,7 +832,7 @@ spec:css21; type:property; text:max-width
828832
<ul>
829833
<li>The 'padding' of the <a>table-root</a> element is ignored (as if it was set to 0px).
830834

831-
<li>The 'border-spacing' of the <a>table-root</a> element is ignored (as if it was set to 0px.
835+
<li>The 'border-spacing' of the <a>table-root</a> element is ignored (as if it was set to 0px).
832836

833837
<li>The 'border-radius' of both <a>table-root</a> and <a>table-non-root</a> elements
834838
is ignored (as it it was set to 0px).
@@ -842,7 +846,7 @@ spec:css21; type:property; text:max-width
842846
</div>
843847

844848
<li>The values used for the layout and rendering of the borders of the <a>table-root</a> element
845-
and the <a>table-cell</a> elements it contains are
849+
and the <a>table-cell</a> elements it owns are
846850
determined using a special conflict resolution algorithm described in [[#border-collapsing]].
847851
</ul>
848852

@@ -1223,6 +1227,12 @@ spec:css21; type:property; text:max-width
12231227
Should 'max-width' be able to override the min-content width?
12241228
An alternative expression is <code>max('min-width', min-content width, min('max-width', 'width'))</code>.
12251229
</div>
1230+
<div class="issue">
1231+
I think we should define those things better.
1232+
Min-width covers both 'min-width' and 'width',
1233+
and width seems to cover the 'width' specified on the column
1234+
(at least based on this <a href="https://jsfiddle.net/ovesmumh/1/">!!Testcase</a>).
1235+
</div>
12261236

12271237
<li>The <b>outer max-content width</b> of a table column or column group is
12281238
<code>max('min-width', min('max-width', 'width'))</code>.
@@ -1269,8 +1279,9 @@ spec:css21; type:property; text:max-width
12691279
<p>
12701280
For the purpose of calculating the outer min-content width of cells,
12711281
descendants of table cells whose width depends on percentages of their parent cell' width
1272-
are considered to have an auto width if they have 'overflow' set to visible,
1273-
and a 0px height if they have not.
1282+
are considered to have an auto width.
1283+
<a href="https://jsfiddle.net/0e12ve9b/1/">Testcase</a>
1284+
<a href="https://jsfiddle.net/0e12ve9b/3/">Testcase</a>
12741285

12751286
<dl>
12761287
<!--------------------------------------------------------------------------------->
@@ -1850,8 +1861,12 @@ spec:css21; type:property; text:max-width
18501861
<p>
18511862
For the purpose of calculating this height,
18521863
descendants of table cells whose height depends on percentages of their parent cell' height
1853-
are considered to have an auto height if they have 'overflow' set to visible,
1864+
are considered to have an auto height
1865+
if they have 'overflow' set to <code>visible</code> or <code>hidden</code>
1866+
or if they are replaced elements,
18541867
and a 0px height if they have not.
1868+
<a href="https://jsfiddle.net/0e12ve9b/">Testcase</a>
1869+
<a href="https://jsfiddle.net/0e12ve9b/3/">!!Testcase</a>
18551870

18561871
<p>
18571872
The <strong>baseline of a cell</strong> is defined as

0 commit comments

Comments
 (0)